Function at 0x50d9cf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19250]
mov eax, 0x19250
call fcn.00517520
push 0xffffffffffffffff
push 0x100534e5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10062108]
xor eax, ebp
mov dword [ebp + 0x1924c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x1925c]
mov ebx, dword [ebp + 0x19258]
and word [ebp + 0x1902c], 0
push 0x1fe
lea eax, [ebp + 0x1902e]
push 0
push eax
mov dword [ebp - 0x20], esi
call fcn.00511b80
push 0x1005a708
mov dword [ebp - 0x24], 0x2710
call fcn.00512260
add esp, 0x10
add ebx, eax
lea eax, [ebp + 0x1902c]
push eax
push 0x100
call dword [0x10055064]
push 0x5c
push esi
call fcn.00516d26
test eax, eax
pop ecx
pop ecx
je 0x50da72
add eax, 2
push eax
jmp 0x50da73
push esi
lea eax, [ebp + 0x1902c]
push eax
call fcn.00512886
pop ecx
pop ecx
push 0x10058694
push ebx
call fcn.00512110
pop ecx
pop ecx
mov esi, eax
push 7
xor eax, eax
test esi, esi
mov byte [ebp + 0x1922c], 0
pop ecx
lea edi, [ebp + 0x1922d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x50dad5
push ebx
push 0x10058448
lea eax, [ebp + 0x2c]
push 0x1005a710
push eax
call fcn.0051219b
lea esi, [ebp + eax + 0x2c]
lea eax, [ebp + 0x1922c]
push ebx
push eax
call fcn.005128d0
add esp, 0x18
jmp 0x50db05
mov eax, esi
sub eax, ebx
push eax
lea eax, [ebp + 0x1922c]
push ebx
push eax
call fcn.005116f0
lea eax, [ebp + 0x1922c]
push eax
inc esi
push esi
lea eax, [ebp + 0x2c]
push 0x1005a710
push eax
call fcn.0051219b
add esp, 0x1c
lea esi, [ebp + eax + 0x2c]
push 0x1005a708
lea ecx, [ebp + 0x10]
call fcn.004e07b7
lea eax, [ebp + 0x1922c]
push eax
lea eax, [ebp + 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004f64d9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x10]
call fcn.0050e17e
test eax, eax
pop ecx
pop ecx
je 0x50db71
push ebx
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 0x10]
call fcn.004e038c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1924c]
xor ecx, ebp
call fcn.005116e0
add ebp, 0x19250
leave
ret
push 6
push 1
push 2
call dword [0x10055270]
mov edi, eax
push 4
lea eax, [ebp - 0x24]
push eax
push 0x1006
push 0xffff
push edi
mov dword [ebp - 0x10], edi
call dword [0x10055254]
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 4], eax
mov ax, word [ebp - 0x18]
mov word [ebp + 2], ax
push 0x10
lea eax, [ebp]
push eax
push edi
mov word [ebp], 2
call dword [0x10055288]
test eax, eax
je 0x50dbca
push edi
call dword [0x1005524c]
jmp 0x50db3d
lea eax, [ebp + 0x2c]
push ebx
sub esi, eax
push esi
push eax
push edi
call dword [0x10055268]
cmp eax, ebx
jle 0x50dbbe
push ebx
mov ebx, 0x4000
push ebx
lea eax, [ebp + 0x2c]
push eax
push edi
mov edi, dword [0x1005525c]
call edi
mov esi, eax
test esi, esi
jg 0x50dc07
push dword [ebp - 0x10]
call dword [0x1005524c]
push 0
jmp 0x50db3e
lea eax, [ebp + 0x2c]
push 0x10057f80
push eax
call fcn.00512110
test eax, eax
pop ecx
pop ecx
je 0x50dbf7
mov byte [eax], 0
add eax, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x2c]
push 0x1005a410
push eax
call fcn.00512110
test eax, eax
pop ecx
pop ecx
je 0x50dbf7
lea eax, [ebp + 0x2c]
push 0x10057f88
push eax
call fcn.00512110
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x50dc9d
lea eax, [ebp + 0x1902c]
push 0x1005a7e4
push eax
call fcn.005159e5
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x50dbf7
sub esi, dword [ebp - 0x18]
push eax
lea esi, [ebp + esi + 0x2c]
push esi
push 1
push dword [ebp - 0x18]
jmp 0x50dc80
push eax
push 1
lea eax, [ebp + 0x2c]
push eax
call fcn.00514f94
add esp, 0x10
push 0
push ebx
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
push dword [ebp - 0x14]
jg 0x50dc79
jmp 0x50dd1c
push 0x10057f88
call fcn.00512260
add dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call fcn.00512243
sub esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x1902c]
push 0x1005a7e4
push eax
lea esi, [ebp + esi + 0x2c]
call fcn.005159e5
add esp, 0x10
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x50dbf7
push eax
push esi
push 1
push dword [ebp - 0x18]
call fcn.00514f94
add esp, 0x10
jmp 0x50dd14
push 0
push ebx
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
mov dword [ebp - 0x18], eax
jle 0x50dd57
push dword [ebp - 0x1c]
push eax
lea eax, [ebp + 0x2c]
push 1
push eax
call fcn.00514f94
add esp, 0x10
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x14]
jl 0x50dcec
push dword [ebp - 0x1c]
call fcn.00511d1b
pop ecx
push dword [ebp - 0x10]
call dword [0x1005524c]
push dword [ebp - 0x20]
call fcn.00514142
pop ecx
push dword [ebp - 0x20]
lea eax, [ebp + 0x1902c]
push eax
call dword [0x100550b8]
test eax, eax
je 0x50dd60
push 2
push dword [ebp - 0x20]
call dword [0x100550cc]
mov bl, 1
jmp 0x50dd62
push dword [ebp - 0x10]
call dword [0x1005524c]
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.004e038c
mov al, bl
jmp 0x50db4e