Function at 0x445270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
mov eax, dword [0x5a8314]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x54], edi
mov byte [esp + 0x13], 1
test edi, edi
je 0x44588f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x44588f
cmp dword [ebp + 0x10], ebx
je 0x44588f
mov eax, dword [edi + 8]
mov edx, dword [esi]
sub eax, edx
inc eax
cmp eax, 2
ja 0x44530b
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 4]
sub eax, ecx
inc eax
cmp eax, 2
mov eax, dword [ebp + 0x10]
ja 0x44530e
sub edx, dword [eax]
inc edx
cmp edx, 2
ja 0x44530e
sub ecx, dword [eax + 4]
inc ecx
cmp ecx, 2
ja 0x44530e
mov eax, dword [eax]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [edi + 0xc], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00496b5c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], eax
lea edx, [esp + 0x98]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x8c], eax
mov eax, dword [esi]
mov dword [esp + 0x90], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x94], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x44], eax
nop dword [eax]
mov eax, dword [edi]
mov esi, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x178]
cmp ecx, eax
jae 0x4454d0
mov eax, dword [ecx + 8]
mov edx, dword [edx]
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
sub eax, dword [ecx + 0x14]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx]
sub edx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
sub ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], ecx
cmp eax, 2
ja 0x4453d4
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x28], 1
cmp eax, 2
jbe 0x4453dc
mov dword [esp + 0x28], 0
lea eax, [edx + 1]
cmp eax, 2
ja 0x4453f3
lea eax, [ecx + 1]
cmp eax, 2
ja 0x4453f3
mov eax, 1
jmp 0x4453f5
xor eax, eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x1c], eax
je 0x445414
test eax, eax
jne 0x445410
push ecx
push edx
call fcn.0043c8d0
add esp, 8
mov esi, eax
mov eax, esi
jmp 0x445441
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0043c8d0
add esp, 8
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], 0
mov esi, eax
jne 0x445445
push dword [esp + 0x2c]
push dword [esp + 0x44]
call fcn.0043c8d0
add esp, 8
mov dword [esp + 0x18], eax
push eax
push esi
call fcn.0043c860
cdq
add esp, 8
xor eax, edx
sub eax, edx
cmp eax, 0x1e0000
jl 0x4454d0
cmp byte [edi + 0x14], 0
je 0x445463
mov dword [edi], esi
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 8]
add eax, ecx
mov dword [esi + 0x20], ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 8]
add eax, dword [esi]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [esi + 8], eax
add eax, ecx
cdq
sub eax, edx
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x14]
sar eax, 1
mov dword [esi + 0x24], ecx
mov dword [edx], eax
mov eax, dword [esi + 0xc]
add eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [esi + 0xc], eax
add eax, ecx
cdq
mov dword [esi + 0x1c], ecx
sub eax, edx
mov ecx, esi
sar eax, 1
mov dword [ecx + 0x14], eax
mov eax, 0x10
jmp 0x445845
cmp byte [esp + 0x13], 0
je 0x4454ff
cmp byte [edi + 0x14], 0
mov byte [esp + 0x13], 0
push 0
je 0x4454f2
push esi
push edi
call fcn.00447580
add esp, 0xc
mov ebx, eax
jmp 0x445542
push edi
mov dword [edi + 4], esi
call fcn.00447530
mov ebx, eax
jmp 0x44553f
push esi
push dword [edi]
call fcn.0043c860
cdq
add esp, 8
xor eax, edx
sub eax, edx
cmp eax, 0x78000
jle 0x445542
mov ecx, dword [esp + 0x14]
push 0
push edi
mov dword [edi + 4], esi
mov eax, dword [ecx]
mov dword [edi + 8], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0xc], eax
mov dword [edi + 0x30], 0
call fcn.00447530
mov ebx, eax
mov eax, dword [edi + 0x34]
mov dword [edi + 0x30], eax
add esp, 8
test ebx, ebx
jne 0x445894
mov eax, dword [esp + 0x18]
push eax
push esi
mov dword [esp + 0x58], ebx
call fcn.0043c860
cdq
sub eax, edx
sar eax, 1
push eax
lea ecx, [eax + esi]
mov dword [esp + 0x34], ecx
call fcn.0043ca40
push eax
push dword [edi + 0x3c]
call fcn.0043ca70
mov ebx, dword [esp + 0x4c]
add esp, 0x14
cmp byte [edi + 0x28], 0
mov dword [esp + 0x60], eax
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
je 0x4455a9
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, eax
sub ecx, dword [edx]
push ecx
call fcn.0043c8d0
add esp, 8
mov dword [esp + 0x50], eax
jmp 0x4455ad
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
lea esi, [edi + 0x40]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x64], eax
sub edx, ecx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x3c], eax
lea eax, [ecx + str.en_JM]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
add eax, edx
push eax
push dword [esp + 0x64]
lea eax, [esp + 0x50]
push eax
call fcn.004411d0
mov eax, dword [esp + 0x70]
add dword [esp + 0x54], eax
push dword [esp + 0x30]
mov eax, dword [esp + 0x78]
add dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
push dword [edi + 0x3c]
push eax
call fcn.004411d0
mov ebx, dword [esp + 0x34]
add esp, 0x18
mov edx, dword [esp + 0x3c]
add ebx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
cmp byte [edi + 0x28], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
je 0x4457c0
mov ecx, dword [esi + 8]
mov eax, dword [esi]
mov edi, dword [ecx + eax*8 - 8]
sub ebx, edi
mov eax, dword [ecx + eax*8 - 4]
sub edx, eax
push edx
push ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x8c], eax
call fcn.0043c8d0
push eax
push dword [esp + 0x5c]
mov dword [esp + 0x7c], eax
call fcn.0043c860
cdq
add esp, 0x10
xor eax, edx
sub eax, edx
cmp eax, str.en_JM
jle 0x4457c0
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
sub eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
sub eax, edi
push eax
call fcn.0043c8d0
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x3c]
push ecx
mov dword [esp + 0x50], eax
call fcn.0043c8d0
mov ecx, dword [esp + 0x40]
mov ebx, eax
sub ecx, edi
lea eax, [esp + 0x88]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x30]
push eax
mov dword [esp + 0x90], ecx
call fcn.00441290
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x80]
sub eax, ebx
push eax
call fcn.00440680
mov ecx, dword [esp + 0x58]
mov edi, eax
sub ecx, ebx
push ecx
call fcn.00440680
cdq
xor eax, edx
sub eax, edx
push eax
mov eax, edi
cdq
xor eax, edx
sub eax, edx
push eax
push dword [esp + 0x94]
call fcn.0043e2a0
push dword [esp + 0x68]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.004411d0
mov eax, dword [esp + 0xa8]
add dword [esp + 0x8c], eax
mov eax, dword [esp + 0x54]
add dword [esp + 0x90], eax
lea eax, [esp + 0x8c]
push 0
push eax
push esi
mov byte [esi + 0x10], 0
call fcn.00446cd0
mov ebx, eax
add esp, 0x40
test ebx, ebx
jne 0x445894
push eax
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00446cd0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x445894
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.00446af0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x445894
push eax
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00446cd0
add esp, 0xc
mov ebx, eax
jmp 0x445804
push 2
push esi
call fcn.00446c50
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x445800
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
lea edx, [eax + ecx*8]
mov eax, dword [esp + 0x48]
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x34]
mov dword [edx + 0xc], eax
mov word [edi + ecx], 0x100
add dword [esi], 2
mov byte [esi + 0x10], 0
test ebx, ebx
jne 0x445894
mov ecx, dword [esp + 0x2c]
add esi, 0x20
mov eax, dword [esp + 0x24]
inc ecx
mov edi, dword [esp + 0x54]
sub eax, 0xb40000
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
cmp ecx, 1
jle 0x4455e5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword [edi], eax
mov eax, 0xfffffff0
add dword [esp + 0x44], eax
mov esi, eax
mov edx, eax
add ecx, esi
add dword [esp + 0x14], edx
lea eax, [esp + 0x88]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
cmp ecx, eax
jae 0x445370
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov dword [edi + 8], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0xc], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00496b5c
mov esp, ebp
pop ebp
ret
mov ebx, 6
mov ecx, dword [esp + 0x19c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00496b5c
mov esp, ebp
pop ebp
ret