Function at 0x4dbd60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6df1
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x66d4f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], ecx
mov ecx, dword [ebp - 0x134]
add ecx, 4
call fcn.0040b520
push eax
call fcn.00514170
add esp, 4
test eax, eax
je 0x4dbe5d
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 4
call fcn.0040b520
push eax
call fcn.00530270
add esp, 8
push 0x61d67c
mov ecx, dword [ebp - 0x134]
add ecx, 4
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.004041b0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0x100000
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x50]
jb 0x4dbe4e
ja 0x4dbe1b
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x54]
jb 0x4dbe4e
lea ecx, [ebp - 0x4c]
call fcn.0040b520
push eax
call fcn.0050ba00
add esp, 4
push 0
lea ecx, [ebp - 0x4c]
call fcn.0040b520
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 4
call fcn.0040b520
push eax
call fcn.00506620
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040b640
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x30]
call fcn.0040b540
mov dword [ebp - 4], 1
push 0x61d684
mov ecx, dword [ebp - 0x134]
add ecx, 4
call fcn.0040b520
push eax
call fcn.005bd438
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4dbffa
lea eax, [ebp - 0xf8]
push eax
call fcn.00508960
add esp, 4
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x13c]
call fcn.0040b520
push eax
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0x61d688
push 0x80
lea edx, [ebp - 0xdc]
push edx
call fcn.005bd516
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf8]
call fcn.0040b640
lea eax, [ebp - 0xdc]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
add ecx, 1
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x140]
mov al, byte [edx]
mov byte [ebp - 0x145], al
add dword [ebp - 0x140], 1
cmp byte [ebp - 0x145], 0
jne 0x4dbf13
mov ecx, dword [ebp - 0x140]
sub ecx, dword [ebp - 0x144]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x14c]
push eax
lea ecx, [ebp - 0xdc]
push ecx
call fcn.005bd6b0
add esp, 0x10
push 0x61d6a0
lea ecx, [ebp - 0x114]
call fcn.0040b540
mov byte [ebp - 4], 3
push 0x61d6a4
lea ecx, [ebp - 0x130]
call fcn.0040b540
mov byte [ebp - 4], 4
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00510470
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
call fcn.0040b640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.0040b640
lea ecx, [ebp - 0x30]
call fcn.0040b520
push eax
push 0x61d6a8
mov edx, dword [ebp - 0x10]
push edx
call fcn.005bd732
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
push 1
push 2
push 0x61d6ac
call fcn.005bd6b0
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005bd8f3
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040b640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005bd2d7
mov esp, ebp
pop ebp
ret 4