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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1774
call fcn.00465dc0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.004474f0
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 0x431377
mov ecx, dword [edi + 0x78]
mov dword [esp + 0x34], ecx
jmp 0x431381
mov edx, dword [edi + 0x1c0]
mov dword [esp + 0x34], edx
test eax, eax
jne 0x43138a
mov edx, dword [edi + 0x7c]
jmp 0x431390
mov edx, dword [edi + 0x1bc]
mov eax, dword [ebp + 0xc]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431396
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 0x43141a
lea ebx, [eax + ecx]
test ebx, ebx
jge 0x43141a
mov dword [esp + 0x18], edi
add ecx, eax
cmp edx, ecx
jae 0x43142e
sub edx, eax
cmp ecx, edi
mov dword [esp + 0x18], edx
jge 0x43142e
mov dword [esp + 0x18], edi
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x44]
push eax
call fcn.00446b50
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 0x4315ac
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.00466312
add esp, 4
test eax, eax
je 0x4314c8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 2
push eax
push ecx
call fcn.00465720
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 [0x489030]
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 0x4314f3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 1
push edx
push eax
call fcn.00465720
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 [0x489030]
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 0x431538
lea edx, [eax + ebx]
test edx, edx
mov dword [esp + edi*4 + 0x480], ebx
jge 0x431538
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 0x431564
sub eax, ecx
add eax, ebx
cmp ecx, ebx
mov dword [esp + edi*4 + 0x80], eax
jae 0x431564
xor eax, eax
mov dword [esp + edi*4 + 0x480], eax
mov dword [esp + edi*4 + 0x80], eax
jmp 0x431566
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 0x431475
mov dword [esp + 0x3c], edi
mov ecx, dword [esp + 0x44]
mov edi, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.00446b90
mov ecx, edi
call fcn.00446eb0
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 0x431636
xor eax, eax
test ecx, ecx
jge 0x43163c
xor ecx, ecx
mov dword [edi + 0x550], eax
mov eax, dword [edi + 0x3dc]
push 0x489bd5
mov dword [edi + 0x554], ecx
push eax
mov ecx, edi
call fcn.00428780
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 0x4319b1
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 0x4316ed
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 0x4316c0
mov ecx, dword [esp + 0x1c]
jmp 0x4316c0
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 0x4316b7
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4316f4
sub eax, edx
cmp dword [edi + 0x538], 0xa8c
mov edx, dword [edi + 0x3dc]
mov ecx, 8
jne 0x43171d
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 [0x48902c]
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 0x43197c
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 0x4317c0
mov edx, dword [esp + 0x50]
cmp edx, dword [esp + 0x68]
jge 0x431959
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 0x43193a
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 0x4317e1
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 0x4317c0
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 0x431690
mov eax, dword [edi + 0x42c]
test eax, eax
je 0x4319e4
mov edx, dword [edi + 0x3dc]
push eax
push edx
call dword [0x48904c]
mov eax, dword [edi + 0x428]
push eax
call dword [0x489054]
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.00446f20
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8