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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1774
call fcn.004779b0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.0045d550
mov eax, dword [eax + 4]
mov esi, dword [ebx + 0x3e0]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x228]
test eax, eax
mov dword [esp + 0x28], esi
jne 0x431857
mov ecx, dword [edi + 0x78]
mov dword [esp + 0x34], ecx
jmp 0x431861
mov edx, dword [edi + 0x1c0]
mov dword [esp + 0x34], edx
test eax, eax
jne 0x43186a
mov edx, dword [edi + 0x7c]
jmp 0x431870
mov edx, dword [edi + 0x1bc]
mov eax, dword [ebp + 0xc]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431876
sub eax, edi
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x880]
rep stosd dword es:[edi], eax
mov ecx, 0xc0
lea edi, [esp + 0xc80]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x480]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0xf80]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x1380]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x54c]
mov ecx, dword [ebx + 0x554]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], ecx
jge 0x4318fa
lea ebx, [eax + ecx]
test ebx, ebx
jge 0x4318fa
mov dword [esp + 0x18], edi
add ecx, eax
cmp edx, ecx
jae 0x43190e
sub edx, eax
cmp ecx, edi
mov dword [esp + 0x18], edx
jge 0x43190e
mov dword [esp + 0x18], edi
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x44]
push eax
call fcn.00447270
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x550]
shl eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
xor edi, edi
xor ebx, ebx
test eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], ebx
jle 0x431a8c
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0xc80]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10]
movsx edx, byte [ecx]
push edx
call fcn.00477f02
add esp, 4
test eax, eax
je 0x4319a8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 2
push eax
push ecx
call fcn.00477380
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
add esp, 0xc
lea edx, [esp + 0x60]
push edx
push 2
push eax
push ecx
call dword [0x49b030]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x4319d3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 1
push edx
push eax
call fcn.00477380
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
add esp, 0xc
lea ecx, [esp + 0x60]
push ecx
push 1
push edx
push eax
call dword [0x49b030]
mov eax, dword [esp + 0x60]
shl eax, 1
xor ecx, ecx
cmp ebx, ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
mov dword [esp + edi*4 + 0x880], eax
mov dword [esp + edi*4 + 0x480], ecx
mov dword [esp + edi*4 + 0x80], eax
jge 0x431a18
lea edx, [eax + ebx]
test edx, edx
mov dword [esp + edi*4 + 0x480], ebx
jge 0x431a18
mov dword [esp + edi*4 + 0x480], ecx
mov dword [esp + edi*4 + 0x80], ecx
mov ecx, dword [esp + 0x34]
lea edx, [eax + ebx]
cmp ecx, edx
jae 0x431a44
sub eax, ecx
add eax, ebx
cmp ecx, ebx
mov dword [esp + edi*4 + 0x80], eax
jae 0x431a44
xor eax, eax
mov dword [esp + edi*4 + 0x480], eax
mov dword [esp + edi*4 + 0x80], eax
jmp 0x431a46
xor eax, eax
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x60]
mov dword [esp + edi*4 + 0xf80], eax
mov eax, dword [esp + 0x18]
add edx, 3
add ebx, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + edi*4 + 0x1380], eax
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x10]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x431955
mov dword [esp + 0x3c], edi
mov ecx, dword [esp + 0x44]
mov edi, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.004472b0
mov ecx, edi
call fcn.004475d0
mov edi, dword [esp + 0x2c]
mov edx, dword [edi + 0x53c]
mov ecx, dword [edi + 0x540]
mov ebx, eax
mov eax, 1
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0x544]
mov dword [edi + 0x53c], eax
mov dword [edi + 0x540], eax
mov dword [edi + 0x544], eax
mov eax, dword [edi + 0x554]
mov dword [esp + 0x4c], ecx
lea ecx, [eax + 8]
imul ecx, ecx, 0xf00
mov dword [esp + 0x30], edx
mov edx, dword [edi + 0x550]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x6c], eax
lea ecx, [eax + eax]
lea eax, [edx + edx]
test eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x24], 0
jge 0x431b16
xor eax, eax
test ecx, ecx
jge 0x431b1c
xor ecx, ecx
mov dword [edi + 0x550], eax
mov eax, dword [edi + 0x3dc]
push 0x49c291
mov dword [edi + 0x554], ecx
push eax
mov ecx, edi
call fcn.0042d5c0
mov eax, dword [edi + 0x54c]
imul eax, dword [esp + 0x34]
add eax, dword [edi + 0x548]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x431e91
lea ecx, [esp + 0xc80]
mov dword [esp + 0x14], ecx
nop
mov eax, dword [esp + 0x5c]
xor edx, edx
test eax, eax
mov dword [esp + 0x20], edx
jle 0x431bcd
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x880]
add eax, 8
lea ecx, [eax + eax*2]
shl ecx, 1
mov dword [esp + 0x1c], ecx
jmp 0x431ba0
mov ecx, dword [esp + 0x1c]
jmp 0x431ba0
lea edi, [edx + esi]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x5c]
add edx, 0x780
cmp edx, eax
mov dword [esp + 0x20], edx
jl 0x431b97
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431bd4
sub eax, edx
cmp dword [edi + 0x538], 0xa8c
mov edx, dword [edi + 0x3dc]
mov ecx, 8
jne 0x431bfd
mov ecx, dword [edi + 0x554]
add ecx, 8
push eax
mov eax, dword [esp + 0x18]
push eax
push 8
push ecx
push edx
call dword [0x49b060]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x34]
add ecx, edx
mov edx, dword [esp + 0x10]
mov edx, dword [esp + edx*4 + 0x880]
neg edx
add edi, edx
lea edx, [edx + edx*2 + 0x780]
shl edx, 1
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x74], edx
mov edx, dword [esp + edi*4 + 0xf80]
cmp edx, dword [esp + edi*4 + 0x1380]
lea edi, [esp + edi*4 + 0x1380]
mov eax, 0x3c18
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], edi
jge 0x431e5c
mov edi, dword [esp + 0x10]
mov edi, dword [esp + edi*4 + 0x480]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x10]
mov edi, dword [esp + edi*4 + 0x80]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x1c]
mov edi, dword [edi]
sub edi, edx
mov dword [esp + 0x1c], edi
jmp 0x431ca0
mov edx, dword [esp + 0x50]
cmp edx, dword [esp + 0x68]
jge 0x431e39
mov edx, dword [esp + 0x10]
mov edx, dword [esp + edx*4 + 0x80]
sub edx, dword [esp + 0x50]
mov dword [esp + 0x48], edx
movzx edx, byte [eax + esi + 3]
movzx edi, byte [eax + esi - 0x780]
mov dword [esp + 0xc], edx
movzx edx, byte [eax + esi]
movzx esi, byte [eax + esi + 0x780]
and esi, edx
and esi, edi
mov edi, edx
and edi, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
movzx edx, byte [eax + edx - 3]
and edi, edx
mov edx, dword [esp + 0x28]
add esi, edi
mov edi, esi
movzx esi, byte [eax + edx]
lea esi, [edi + esi*2]
movzx edi, byte [eax + edx - 0x783]
lea edi, [edi + esi*2]
movzx esi, byte [eax + edx - 0x77d]
add edi, esi
movzx esi, byte [eax + edx + 0x783]
movzx edx, byte [eax + edx + 0x780]
add esi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], esi
movzx esi, byte [eax + edx + 0x77d]
mov edx, dword [esp + 0xc]
add edx, edi
add esi, edx
mov edx, dword [esp + 0x28]
movzx edi, byte [eax + edx + 3]
add esi, edi
movzx edi, byte [eax + edx - 0x780]
movzx edx, byte [eax + edx - 3]
add esi, edi
add esi, edx
je 0x431e1a
mov eax, dword [esp + 0x58]
imul esi, esi, 0xff
movzx edx, byte [ecx + eax]
sar esi, 4
mov edi, 0xff
sub edi, esi
imul edi, edx
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
lea eax, [edi + esi]
mov dword [esp + 0xc], eax
movzx eax, byte [ebx + ecx*4 + 2]
imul eax, edi
mov edx, esi
imul edx, dword [esp + 0x54]
add eax, edx
xor edx, edx
div dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
shl eax, 8
mov dword [esp + 0x40], eax
movzx eax, byte [edx + ecx*4 + 1]
imul eax, edi
mov ecx, esi
imul esi, dword [esp + 0x30]
imul ecx, dword [esp + 0x4c]
add eax, ecx
xor edx, edx
div ebx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
or ecx, eax
shl ecx, 8
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [edx + ecx*4]
and eax, 0xff
imul eax, edi
add eax, esi
xor edx, edx
div ebx
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x18]
or edx, eax
mov al, byte [esp + 0xc]
mov dword [ebx + ecx*4], edx
mov edx, dword [esp + 0x58]
mov byte [ecx + edx], al
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
inc ecx
add eax, 6
dec edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], edx
jne 0x431cc1
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
add ecx, edx
mov edx, dword [esp + 0x1c]
add eax, edi
dec edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jne 0x431ca0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x880]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
inc eax
add edx, 3
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x431b70
mov eax, dword [edi + 0x42c]
test eax, eax
je 0x431ec4
mov edx, dword [edi + 0x3dc]
push eax
push edx
call dword [0x49b04c]
mov eax, dword [edi + 0x428]
push eax
call dword [0x49b054]
xor eax, eax
mov dword [edi + 0x428], eax
mov dword [edi + 0x42c], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
mov dword [edi + 0x53c], ecx
mov ecx, dword [esp + 0x7c]
mov dword [edi + 0x540], edx
mov edx, dword [esp + 0x6c]
mov dword [edi + 0x550], ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x544], eax
mov dword [edi + 0x554], edx
call fcn.00447640
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8