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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x177c
call fcn.004779b0
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x228]
test eax, eax
mov ebx, dword [esi + 0x3e0]
push edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], ebx
jne 0x430355
mov edx, dword [ecx + 0x78]
jmp 0x43035b
mov edx, dword [ecx + 0x1c0]
test eax, eax
mov dword [esp + 0x34], edx
jne 0x43036c
mov eax, dword [ecx + 0x7c]
mov dword [esp + 0x18], eax
jmp 0x430376
mov edx, dword [ecx + 0x1bc]
mov dword [esp + 0x18], edx
call fcn.0045d550
mov eax, dword [eax + 4]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x430388
sub eax, edx
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x888]
rep stosd dword es:[edi], eax
mov ecx, 0xc0
lea edi, [esp + 0xc88]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x488]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0xf88]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x1388]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x54c]
mov ecx, dword [esi + 0x554]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x20], ecx
jge 0x43040c
lea edx, [eax + ecx]
test edx, edx
jge 0x43040c
mov dword [esp + 0x20], edi
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jae 0x430425
sub ecx, eax
cmp edx, edi
mov dword [esp + 0x20], ecx
jge 0x430425
mov dword [esp + 0x20], edi
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x38]
push eax
call fcn.00447270
mov eax, dword [esi + 0x550]
shl eax, 1
xor ecx, ecx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x24], ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ecx
jle 0x4305ad
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xc88]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
movsx ecx, byte [eax]
push ecx
call fcn.00477f02
add esp, 4
test eax, eax
je 0x4304bb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 2
push edx
push eax
call fcn.00477380
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
add esp, 0xc
lea ecx, [esp + 0x5c]
push ecx
push 2
push edx
push eax
call dword [0x49b030]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
inc ecx
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
jmp 0x4304e6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 1
push ecx
push edx
call fcn.00477380
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
push 1
push ecx
push edx
call dword [0x49b030]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
shl eax, 1
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + edi*4 + 0x888], ecx
mov dword [esp + edi*4 + 0x488], 0
mov dword [esp + edi*4 + 0x88], ecx
jge 0x430533
lea edx, [ecx + eax]
test edx, edx
mov dword [esp + edi*4 + 0x488], eax
jge 0x430533
xor edx, edx
mov dword [esp + edi*4 + 0x488], edx
mov dword [esp + edi*4 + 0x88], edx
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x34]
cmp ecx, edx
jae 0x430563
mov edx, dword [esp + 0x18]
sub edx, ecx
add edx, eax
cmp ecx, eax
mov dword [esp + edi*4 + 0x88], edx
jae 0x430563
xor ecx, ecx
mov dword [esp + edi*4 + 0x488], ecx
mov dword [esp + edi*4 + 0x88], ecx
jmp 0x430565
xor ecx, ecx
mov edx, dword [esp + 0x14]
mov dword [esp + edi*4 + 0xf88], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + edi*4 + 0x1388], ecx
add eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
add edx, 3
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jl 0x430468
mov dword [esp + 0x48], edi
mov edx, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
push edx
call fcn.004472b0
mov ecx, dword [ebp + 8]
call fcn.004475d0
mov ecx, dword [esi + 0x540]
mov edx, dword [esi + 0x544]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x53c]
mov dword [esp + 0x54], eax
mov eax, 1
mov dword [esi + 0x53c], eax
mov dword [esi + 0x540], eax
mov dword [esi + 0x544], eax
mov eax, dword [esi + 0x554]
mov dword [esp + 0x44], ecx
lea ecx, [eax + 8]
imul ecx, ecx, 0xf00
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x550]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x68], eax
lea ecx, [eax + eax]
lea eax, [edx + edx]
test eax, eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x14], 0
jge 0x430633
xor eax, eax
test ecx, ecx
jge 0x430639
xor ecx, ecx
mov dword [esi + 0x550], eax
mov eax, dword [esi + 0x3dc]
push 0x49c291
mov dword [esi + 0x554], ecx
push eax
mov ecx, esi
call fcn.0042d5c0
mov eax, dword [esi + 0x54c]
imul eax, dword [esp + 0x34]
add eax, dword [esi + 0x548]
test edi, edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], 0
jle 0x430998
lea ecx, [esp + 0xc88]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x30]
xor edx, edx
test eax, eax
mov dword [esp + 0x24], edx
jle 0x4306dc
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x888]
add eax, 8
lea ecx, [eax + eax*2]
shl ecx, 1
mov dword [esp + 0x28], ecx
jmp 0x4306b3
mov ecx, dword [esp + 0x28]
lea edi, [edx + ebx]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x30]
add edx, 0x780
cmp edx, eax
mov dword [esp + 0x24], edx
jl 0x4306af
mov edi, dword [esp + 0x18]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4306e5
sub eax, edx
cmp dword [esi + 0x538], 0xa8c
mov edx, dword [esi + 0x3dc]
mov ecx, 8
jne 0x43070e
mov ecx, dword [esi + 0x554]
add ecx, 8
push eax
push edi
push 8
push ecx
push edx
call dword [0x49b060]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x34]
add ecx, edx
mov edx, dword [esp + 0x10]
mov edx, dword [esp + edx*4 + 0x888]
neg edx
add edi, edx
lea edx, [edx + edx*2 + 0x780]
shl edx, 1
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + edi*4 + 0xf88]
cmp edx, dword [esp + edi*4 + 0x1388]
lea edi, [esp + edi*4 + 0x1388]
mov eax, 0x3c18
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
jge 0x430967
mov edi, dword [esp + 0x10]
mov edi, dword [esp + edi*4 + 0x488]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x10]
mov edi, dword [esp + edi*4 + 0x88]
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x28]
mov edi, dword [edi]
sub edi, edx
mov dword [esp + 0x28], edi
jmp 0x4307b0
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x78]
jge 0x430941
mov edx, dword [esp + 0x10]
mov edx, dword [esp + edx*4 + 0x88]
sub edx, dword [esp + 0x24]
mov dword [esp + 0x58], edx
movzx edx, byte [eax + ebx]
movzx edi, byte [eax + ebx + 0x780]
movzx esi, byte [eax + ebx - 0x780]
and edi, edx
and edi, esi
mov esi, edx
movzx edx, byte [eax + ebx + 3]
and esi, edx
movzx edx, byte [eax + ebx - 3]
and esi, edx
movzx edx, byte [eax + ebx]
add edi, esi
movzx esi, byte [eax + ebx - 0x783]
lea edx, [edi + edx*2]
lea edi, [esi + edx*2]
movzx edx, byte [eax + ebx - 0x77d]
add edi, edx
movzx edx, byte [eax + ebx + 0x783]
mov esi, edx
movzx edx, byte [eax + ebx + 0x780]
add esi, edx
mov edx, esi
movzx esi, byte [eax + ebx + 0x77d]
add edx, edi
add esi, edx
movzx edx, byte [eax + ebx + 3]
add esi, edx
movzx edx, byte [eax + ebx - 0x780]
add esi, edx
movzx edx, byte [eax + ebx - 3]
add esi, edx
je 0x430922
mov eax, dword [esp + 0x50]
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
mov edx, dword [esp + 0x4c]
movzx ecx, word [edx + ecx*2]
lea eax, [edi + esi]
mov dword [esp + 0x2c], eax
mov eax, ecx
shr eax, 8
and eax, 0xf8
imul eax, edi
mov edx, esi
imul edx, dword [esp + 0x54]
add eax, edx
xor edx, edx
div dword [esp + 0x2c]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
xor edx, edx
shr eax, 3
shl eax, 5
mov dword [esp + 0x6c], eax
mov eax, ecx
shr eax, 3
and eax, 0xfc
imul eax, edi
mov ecx, esi
imul esi, dword [esp + 0x40]
imul ecx, dword [esp + 0x44]
add eax, ecx
div ebx
mov ecx, dword [esp + 0x6c]
xor edx, edx
shr eax, 3
or ecx, eax
mov eax, dword [esp + 0x3c]
and eax, 0x1f
shl eax, 3
imul eax, edi
add eax, esi
div ebx
mov edx, dword [esp + 0x4c]
shl ecx, 5
shr eax, 3
or ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x1c]
mov word [edx + ecx*2], ax
mov eax, dword [esp + 0x50]
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
inc ecx
add eax, 6
dec edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], edx
jne 0x4307d1
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
add ecx, edx
mov edx, dword [esp + 0x28]
add eax, edi
dec edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
jne 0x4307b0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x888]
mov edx, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
inc eax
add edx, 3
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jl 0x430688
mov eax, dword [esi + 0x42c]
test eax, eax
je 0x4309cb
mov edx, dword [esi + 0x3dc]
push eax
push edx
call dword [0x49b04c]
mov eax, dword [esi + 0x428]
push eax
call dword [0x49b054]
xor eax, eax
mov dword [esi + 0x428], eax
mov dword [esi + 0x42c], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [esi + 0x53c], ecx
mov ecx, dword [esp + 0x84]
mov dword [esi + 0x540], edx
mov edx, dword [esp + 0x68]
mov dword [esi + 0x550], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x544], eax
mov dword [esi + 0x554], edx
call fcn.00447640
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8