Function at 0x49c266
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x1cc
and dword [esp + 0x28], 0
xor eax, eax
cmp dword [0x5dea70], 8
push ebx
push ebp
push esi
mov word [esp + 0x24], ax
mov ebx, ecx
push edi
mov eax, 0x5dea5c
mov dword [esp + 0x3c], 7
cmovae eax, dword [0x5dea5c]
push 0x54e8cc
push eax
call fcn.0051872c
mov ebp, eax
mov dword [esp + 0x2c], ebp
pop ecx
pop ecx
test ebp, ebp
je 0x49c72e
mov esi, 0x55a74c
lea ecx, [esp + 0x28]
push esi
call fcn.0043c2b9
push 2
push esi
lea ecx, [esp + 0x30]
call fcn.0043d30e
push 2
push esi
lea ecx, [esp + 0x30]
call fcn.0043d30e
push 2
push esi
lea ecx, [esp + 0x30]
call fcn.0043d30e
push 1
push 0x54df48
lea ecx, [esp + 0x30]
call fcn.0043d30e
mov ecx, dword [ebx + 0x2800]
mov eax, dword [ebx + 0x2804]
push 0x3c
pop esi
cmp ecx, eax
je 0x49c3b7
sub eax, ecx
and dword [esp + 0x14], 0
cdq
idiv esi
test eax, eax
jle 0x49c3c7
mov ebp, dword [esp + 0x14]
xor edi, edi
lea esi, [ecx + edi]
push 0x55a748
lea edx, [esi + 0x18]
lea ecx, [esp + 0x5c]
call fcn.0043de19
pop ecx
push esi
mov ecx, eax
call fcn.0043c3ca
push eax
lea ecx, [esp + 0x44]
call fcn.0043a41d
push 0x55a7bc
lea edx, [esp + 0x44]
lea ecx, [esp + 0x74]
call fcn.0043de86
pop ecx
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x49c36a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.0043d30e
lea ecx, [esp + 0x70]
call fcn.0043c274
lea ecx, [esp + 0x40]
call fcn.0043c274
lea ecx, [esp + 0x58]
call fcn.0043c274
mov eax, dword [ebx + 0x2804]
inc ebp
mov ecx, dword [ebx + 0x2800]
sub eax, ecx
push 0x3c
pop esi
cdq
add edi, esi
idiv esi
cmp ebp, eax
jl 0x49c326
mov ebp, dword [esp + 0x24]
jmp 0x49c3c7
push 1
push 0x55a7a0
lea ecx, [esp + 0x30]
call fcn.0043d30e
push 1
push 0x54df48
lea ecx, [esp + 0x30]
call fcn.0043d30e
mov ecx, dword [ebx + 0x2800]
mov eax, dword [ebx + 0x2804]
cmp ecx, eax
je 0x49c6eb
sub eax, ecx
xor edi, edi
cdq
idiv esi
mov dword [esp + 0x14], edi
test eax, eax
jle 0x49c6fb
xor ebp, ebp
mov dword [esp + 0x20], 0xd8
mov eax, dword [ecx + ebp + 0x34]
mov esi, ecx
sub eax, dword [ecx + ebp + 0x30]
cdq
idiv dword [esp + 0x20]
and dword [esp + 0x1c], 0
test eax, eax
jle 0x49c6c3
xor edx, edx
mov dword [esp + 0x18], edx
lea esi, [ecx + ebp]
mov edi, dword [esi + 0x30]
lea ecx, [esp + 0x1c0]
add edi, edx
push 0x55a748
mov edx, edi
call fcn.0043de19
pop ecx
lea ecx, [edi + 0x18]
push ecx
mov ecx, eax
call fcn.0043c3ca
push eax
lea ecx, [esp + 0x74]
call fcn.0043a41d
push 0x55a748
lea edx, [esp + 0x74]
lea ecx, [esp + 0x1ac]
call fcn.0043de86
pop ecx
lea ecx, [edi + 0x30]
push ecx
mov ecx, eax
call fcn.0043c3ca
push eax
lea ecx, [esp + 0x5c]
call fcn.0043a41d
push 0x55a748
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x194]
call fcn.0043de86
pop ecx
push esi
mov ecx, eax
call fcn.0043c3ca
push eax
lea ecx, [esp + 0xec]
call fcn.0043a41d
mov esi, 0x55a748
lea edx, [esp + 0xe8]
push esi
lea ecx, [esp + 0x17c]
call fcn.0043de86
pop ecx
lea ecx, [edi + 0x60]
push ecx
mov ecx, eax
call fcn.0043c3ca
push eax
lea ecx, [esp + 0xd4]
call fcn.0043a41d
push esi
lea edx, [esp + 0xd4]
lea ecx, [esp + 0x164]
call fcn.0043de86
pop ecx
lea ecx, [edi + 0x78]
push ecx
mov ecx, eax
call fcn.0043c3ca
push eax
lea ecx, [esp + 0xbc]
call fcn.0043a41d
push esi
lea edx, [esp + 0xbc]
lea ecx, [esp + 0x14c]
call fcn.0043de86
pop ecx
lea ecx, [edi + 0x90]
push ecx
mov ecx, eax
call fcn.0043c3ca
push eax
lea ecx, [esp + 0xa4]
call fcn.0043a41d
push esi
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x134]
call fcn.0043de86
pop ecx
lea ecx, [edi + 0xa8]
push ecx
mov ecx, eax
call fcn.0043c3ca
push eax
lea ecx, [esp + 0x8c]
call fcn.0043a41d
push esi
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x11c]
call fcn.0043de86
pop ecx
lea ecx, [edi + 0xc0]
push ecx
mov ecx, eax
call fcn.0043c3ca
push eax
lea ecx, [esp + 0x44]
call fcn.0043a41d
push 0x55a7bc
lea edx, [esp + 0x44]
lea ecx, [esp + 0x104]
call fcn.0043de86
pop ecx
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x49c5bd
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.0043d30e
lea ecx, [esp + 0x100]
call fcn.0043c274
lea ecx, [esp + 0x40]
call fcn.0043c274
lea ecx, [esp + 0x118]
call fcn.0043c274
lea ecx, [esp + 0x88]
call fcn.0043c274
lea ecx, [esp + 0x130]
call fcn.0043c274
lea ecx, [esp + 0xa0]
call fcn.0043c274
lea ecx, [esp + 0x148]
call fcn.0043c274
lea ecx, [esp + 0xb8]
call fcn.0043c274
lea ecx, [esp + 0x160]
call fcn.0043c274
lea ecx, [esp + 0xd0]
call fcn.0043c274
lea ecx, [esp + 0x178]
call fcn.0043c274
lea ecx, [esp + 0xe8]
call fcn.0043c274
lea ecx, [esp + 0x190]
call fcn.0043c274
lea ecx, [esp + 0x58]
call fcn.0043c274
lea ecx, [esp + 0x1a8]
call fcn.0043c274
lea ecx, [esp + 0x70]
call fcn.0043c274
lea ecx, [esp + 0x1c0]
call fcn.0043c274
mov esi, dword [ebx + 0x2800]
mov ecx, esi
mov edi, dword [esp + 0x1c]
add dword [esp + 0x18], 0xd8
inc edi
mov dword [esp + 0x1c], edi
mov eax, dword [esi + ebp + 0x34]
sub eax, dword [esi + ebp + 0x30]
cdq
idiv dword [esp + 0x20]
mov edx, dword [esp + 0x18]
cmp edi, eax
jl 0x49c42a
mov edi, dword [esp + 0x14]
push 0x3c
pop eax
add ebp, eax
mov ecx, esi
mov eax, dword [ebx + 0x2804]
inc edi
sub eax, esi
mov dword [esp + 0x14], edi
push 0x3c
cdq
pop esi
idiv esi
cmp edi, eax
jl 0x49c408
mov ebp, dword [esp + 0x24]
jmp 0x49c6fb
push 1
push 0x55a7a0
lea ecx, [esp + 0x30]
call fcn.0043d30e
push ebp
push 1
push 2
push 0x5deaa4
call fcn.0051899d
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
push ebp
push dword [esp + 0x4c]
cmovae eax, dword [esp + 0x40]
push 2
push eax
call fcn.0051899d
push ebp
call fcn.00518a6b
add esp, 0x24
lea ecx, [esp + 0x28]
call fcn.0043c274
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret