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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x54]
test eax, eax
mov eax, dword [esi + 8]
jne 0x4314c8
test eax, eax
je 0x431915
mov eax, dword [esi + 0x58]
test eax, eax
je 0x431915
call fcn.00430db0
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0x40]
lea eax, [ecx + 0x20]
push eax
mov eax, dword [esi + 0x3c]
push edx
mov edx, dword [esi + 0x38]
push eax
mov eax, dword [esi + 0x34]
push edx
push eax
call fcn.004181a0
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x58], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
mov edi, dword [esp + 0x34]
test eax, eax
jne 0x43152c
mov al, byte [esi + 0x97]
test al, al
jne 0x4314fd
mov al, byte [esi + 0x9b]
test al, al
jne 0x4314fd
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
push edi
push eax
push ecx
mov ecx, esi
call fcn.004332a0
jmp 0x43152c
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edi
push edx
push eax
mov ecx, esi
call fcn.00433140
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x40]
lea edx, [ecx + 0x20]
push edx
mov edx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x38]
push edx
mov edx, dword [esi + 0x34]
push eax
push edx
call fcn.004181a0
mov eax, dword [esi + 8]
test eax, eax
je 0x43157a
cmp dword [esi + 0x360], 1
je 0x431546
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x58]
cmp eax, ecx
je 0x43157a
mov ecx, esi
call fcn.00430db0
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x360], 0
mov dword [esi + 0x58], ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x40]
lea edx, [ecx + 0x20]
push edx
mov edx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x38]
push edx
mov edx, dword [esi + 0x34]
push eax
push edx
call fcn.004181a0
mov eax, dword [esi + 0xf7c]
test eax, eax
jne 0x431915
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edi
push eax
push ecx
mov ecx, esi
call fcn.00432240
cmp dword [esi + 0xf80], 1
jne 0x431915
mov edx, dword [esi + 0x1798]
test edx, edx
jl 0x431915
mov eax, dword [esi + 0x1c]
cmp edx, eax
jge 0x431915
mov ebx, dword [esi + 0xf6c]
cmp ebx, eax
jl 0x4315e6
mov ecx, dword [esi + 0xf70]
sub eax, edx
dec eax
mov dword [esp + 0x10], ecx
imul eax, ecx
add eax, dword [esi + 0x88]
mov dword [esp + 0x34], eax
jmp 0x431644
mov ecx, dword [esi + 0xf64]
sub eax, ecx
cmp eax, ebx
jne 0x431613
mov ebp, dword [esi + 0xf70]
sub ecx, edx
mov dword [esp + 0x10], ebp
lea eax, [ecx + ebx - 1]
mov ecx, dword [esi + 0x88]
imul eax, ebp
add eax, ecx
mov dword [esp + 0x34], eax
jmp 0x431644
mov ebx, dword [esi + 0xf70]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x10], ebx
call fcn.00405360
mov edx, dword [esi + 0x1798]
mov ebp, dword [esi + 0xf64]
sub edx, ebp
mov ecx, dword [esi + 0x90]
imul edx, ebx
sub ecx, edx
sub ecx, eax
mov dword [esp + 0x34], ecx
mov ebx, dword [esi + 0x17a0]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esi + 0x17a4]
mov edx, dword [esi + 0x179c]
mov eax, dword [esi + 0x84]
add ecx, ebx
add ecx, ebp
mov ebp, dword [esi + 0x8c]
add eax, edx
sub ebp, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
sub edx, ebx
mov ebx, dword [esi + 0x17a4]
add edx, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
lea ebx, [edx + ebx - 1]
mov edx, dword [edi]
cmp edx, 0x10
mov dword [esp + 0x24], ebx
lea edx, [esi + 0x1384]
jne 0x431723
test edx, edx
mov dword [esp + 0x14], edx
je 0x4317a7
lea edx, [esi + 0xf84]
test edx, edx
je 0x4317a7
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], eax
lea eax, [edx + 2]
mov dl, byte [eax]
mov cl, byte [edi + 0x30]
shr dl, cl
mov ecx, dword [edi + 0x2c]
mov bl, byte [eax - 1]
add eax, 4
movzx dx, dl
shl edx, cl
mov cl, byte [edi + 0x20]
shr bl, cl
mov ecx, dword [edi + 0x1c]
movzx bx, bl
shl ebx, cl
mov cl, byte [edi + 0x10]
or edx, ebx
mov bl, byte [eax - 6]
shr bl, cl
mov ecx, dword [edi + 0xc]
movzx bx, bl
shl ebx, cl
mov ecx, dword [esp + 0x10]
add ecx, 2
mov dword [esp + 0x10], ecx
or edx, ebx
mov word [ecx - 2], dx
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4316ce
jmp 0x43179b
test edx, edx
mov dword [esp + 0x14], edx
je 0x4317a7
lea edx, [esi + 0xf84]
test edx, edx
je 0x4317a7
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0x100
mov dword [esp + 0x14], eax
lea eax, [edx + 1]
xor ecx, ecx
mov cl, byte [eax + 1]
add eax, 4
mov edx, ecx
mov cl, byte [edi + 0x30]
shr edx, cl
mov ecx, dword [edi + 0x2c]
shl edx, cl
xor ecx, ecx
mov cl, byte [eax - 5]
mov ebx, ecx
mov cl, byte [edi + 0x10]
shr ebx, cl
mov ecx, dword [edi + 0xc]
shl ebx, cl
xor ecx, ecx
mov cl, byte [eax - 4]
or edx, ebx
mov ebx, ecx
mov cl, byte [edi + 0x20]
shr ebx, cl
mov ecx, dword [edi + 0x1c]
shl ebx, cl
mov ecx, dword [esp + 0x14]
add ecx, 4
mov dword [esp + 0x14], ecx
or edx, ebx
mov dword [ecx - 4], edx
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x431748
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dl, byte [esi + 0x1784]
push edx
mov dl, byte [esi + 0x1186]
push edx
mov dl, byte [esi + 0x1185]
push edx
mov dl, byte [esi + 0x1184]
push edx
push ebx
push ebp
push ecx
mov ecx, dword [esp + 0x48]
push eax
lea eax, [esi + 0x6c]
push eax
mov eax, dword [esp + 0x54]
push edi
push eax
push ecx
call fcn.0042dff0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x48]
add esp, 0x30
sub ebp, eax
lea edx, [ecx + 0x20]
push edx
mov edx, dword [esp + 0x20]
sub ebx, edx
inc ebx
inc ebp
push ebx
push ebp
push edx
push eax
call fcn.004181a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esi + 0x84]
push 0
push 0
push edi
push eax
push ecx
mov ecx, dword [esi + 0x14]
call fcn.00404fa0
mov ecx, dword [esi + 0x14]
call fcn.004051c0
mov ecx, dword [esi + 0x14]
push 1
call fcn.00405070
mov ecx, dword [esi + 0x14]
push 1
call fcn.00404f60
mov edx, dword [esi + 0xf74]
mov ecx, dword [esi + 0x14]
push edx
call fcn.00404ff0
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x6c]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push eax
call fcn.00404f70
mov cl, byte [esi + 0x9c]
push ecx
mov ecx, dword [esi + 0x14]
call fcn.00405040
mov edx, dword [esi + 0x1798]
mov eax, dword [esi + 0x24]
mov ebp, dword [esp + 0x34]
mov ecx, dword [eax + edx*4]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push ebp
push ebx
push edx
call fcn.004050d0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x43189d
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x28], eax
mov al, 1
jmp 0x43189f
xor al, al
test al, al
je 0x431915
mov ecx, dword [esi + 0x28]
mov dl, byte [esi + 0x9c]
push edx
mov edi, dword [ecx + 8]
mov ecx, dword [esi + 0x14]
call fcn.00405040
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [esi + 0x14]
call fcn.00405060
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x1798]
shl eax, 2
mov edx, dword [ecx + 0x10]
cmp dword [eax + edx], 0
je 0x4318f1
mov ecx, edx
mov edx, dword [eax + ecx]
mov ecx, dword [esi + 0x14]
push edx
push ebp
lea eax, [esp + 0x20]
push edi
push eax
call fcn.004050d0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x43190f
mov ecx, dword [eax]
test ecx, ecx
je 0x431905
mov dword [esi + 0x28], ecx
mov al, 1
jmp 0x431911
test eax, eax
je 0x43190f
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x28], ecx
xor al, al
test al, al
jne 0x4318a3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10