Function at 0x431120
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 + 0x30], ebx
call fcn.0045d550
mov eax, dword [eax + 4]
mov esi, dword [ebx + 0x3e0]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x228]
test eax, eax
mov dword [esp + 0x24], esi
jne 0x431167
mov ecx, dword [edi + 0x78]
mov dword [esp + 0x34], ecx
jmp 0x431171
mov edx, dword [edi + 0x1c0]
mov dword [esp + 0x34], edx
test eax, eax
jne 0x43117a
mov edx, dword [edi + 0x7c]
jmp 0x431180
mov edx, dword [edi + 0x1bc]
mov eax, dword [ebp + 0xc]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431186
sub eax, edi
mov dword [esp + 0x28], 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 + 0x1c], ecx
jge 0x43120a
lea ebx, [eax + ecx]
test ebx, ebx
jge 0x43120a
mov dword [esp + 0x1c], edi
add ecx, eax
cmp edx, ecx
jae 0x43121e
sub edx, eax
cmp ecx, edi
mov dword [esp + 0x1c], edx
jge 0x43121e
mov dword [esp + 0x1c], edi
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x40]
push eax
call fcn.00447270
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x550]
shl eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
xor edi, edi
xor ebx, ebx
test eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], ebx
jle 0x43139c
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0xc80]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
movsx edx, byte [ecx]
push edx
call fcn.00477f02
add esp, 4
test eax, eax
je 0x4312b8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push 2
push eax
push ecx
call fcn.00477380
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
add esp, 0xc
lea edx, [esp + 0x58]
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 0x4312e3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 1
push edx
push eax
call fcn.00477380
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
push 1
push edx
push eax
call dword [0x49b030]
mov eax, dword [esp + 0x58]
shl eax, 1
xor ecx, ecx
cmp ebx, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esp + edi*4 + 0x880], eax
mov dword [esp + edi*4 + 0x480], ecx
mov dword [esp + edi*4 + 0x80], eax
jge 0x431328
lea edx, [eax + ebx]
test edx, edx
mov dword [esp + edi*4 + 0x480], ebx
jge 0x431328
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 0x431354
sub eax, ecx
add eax, ebx
cmp ecx, ebx
mov dword [esp + edi*4 + 0x80], eax
jae 0x431354
xor eax, eax
mov dword [esp + edi*4 + 0x480], eax
mov dword [esp + edi*4 + 0x80], eax
jmp 0x431356
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
mov dword [esp + edi*4 + 0xf80], eax
mov eax, dword [esp + 0x1c]
add edx, 3
add ebx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + edi*4 + 0x1380], eax
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x431265
mov dword [esp + 0x3c], edi
mov ecx, dword [esp + 0x40]
mov edi, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.004472b0
mov ecx, edi
call fcn.004475d0
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 0x53c]
mov ecx, dword [edi + 0x540]
mov ebx, eax
mov eax, 1
mov dword [esp + 0x4c], 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 + 0x44], ecx
lea ecx, [eax + 8]
imul ecx, ecx, 0xf00
mov dword [esp + 0x38], edx
mov edx, dword [edi + 0x550]
mov dword [esp + 0x50], 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 + 0x28], 0
jge 0x431426
xor eax, eax
test ecx, ecx
jge 0x43142c
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 + 0x74], eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x431793
lea ecx, [esp + 0xc80]
mov dword [esp + 0x1c], ecx
nop
mov eax, dword [esp + 0x50]
xor edx, edx
test eax, eax
mov dword [esp + 0x20], edx
jle 0x4314dd
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 + 0x2c], ecx
jmp 0x4314b0
mov ecx, dword [esp + 0x2c]
jmp 0x4314b0
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 + 0x50]
add edx, 0x780
cmp edx, eax
mov dword [esp + 0x20], edx
jl 0x4314a7
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4314e4
sub eax, edx
cmp dword [edi + 0x538], 0xa8c
mov edx, dword [edi + 0x3dc]
mov ecx, 8
jne 0x43150d
mov ecx, dword [edi + 0x554]
add ecx, 8
push eax
mov eax, dword [esp + 0x20]
push eax
push 8
push ecx
push edx
call dword [0x49b060]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
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 edi, [edi + edi*2]
lea edx, [edx + edx*2 + 0x780]
shl edx, 1
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x60], 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
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x2c], edi
jge 0x43175e
mov edi, dword [esp + 0x10]
mov edi, dword [esp + edi*4 + 0x480]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x10]
mov edi, dword [esp + edi*4 + 0x80]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x2c]
mov edi, dword [edi]
sub edi, edx
mov dword [esp + 0x2c], edi
jmp 0x4315b0
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x64]
jge 0x43173f
mov edx, dword [esp + 0x10]
mov edx, dword [esp + edx*4 + 0x80]
sub edx, dword [esp + 0x48]
mov dword [esp + 0x54], edx
movzx edx, byte [eax + esi + 3]
movzx edi, byte [eax + esi - 0x780]
mov dword [esp + 0x14], 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 + 0x14]
mov edx, dword [esp + 0x24]
movzx edx, byte [eax + edx - 3]
and edi, edx
mov edx, dword [esp + 0x24]
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 + 0x24]
mov dword [esp + 0x14], esi
movzx esi, byte [eax + edx + 0x77d]
mov edx, dword [esp + 0x14]
add edx, edi
add esi, edx
mov edx, dword [esp + 0x24]
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 0x431722
mov eax, 0x55555556
imul esi, esi, 0xff
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x68]
add eax, edx
mov dword [esp + 0x70], eax
movzx eax, byte [eax]
sar esi, 4
mov edi, 0xff
sub edi, esi
imul edi, eax
mov eax, 0x80808081
imul edi
movzx eax, byte [ecx + ebx + 2]
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
imul eax, edi
lea edx, [edi + esi]
mov dword [esp + 0x14], edx
mov edx, esi
imul edx, dword [esp + 0x4c]
add eax, edx
xor edx, edx
div dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
mov byte [ecx + edx + 2], al
movzx eax, byte [ecx + edx + 1]
imul eax, edi
mov edx, esi
imul esi, dword [esp + 0x38]
imul edx, dword [esp + 0x44]
add eax, edx
xor edx, edx
div dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov byte [ecx + edx + 1], al
movzx eax, byte [ecx + edx]
imul eax, edi
add eax, esi
xor edx, edx
div dword [esp + 0x14]
mov edx, dword [esp + 0x70]
mov byte [ecx + ebx], al
mov al, byte [esp + 0x14]
mov byte [edx], al
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x24]
add eax, 6
add ecx, 3
dec edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], edx
jne 0x4315d1
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x60]
add ecx, edx
mov edx, dword [esp + 0x2c]
add eax, edi
dec edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edx
jne 0x4315b0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x880]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
add edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x1c]
inc eax
add edx, 3
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
jl 0x431480
mov eax, dword [edi + 0x42c]
test eax, eax
je 0x4317c6
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 + 0x4c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
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