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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1754
call fcn.00465dc0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [esi + 0x3e0]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x228]
test eax, eax
push edi
jne 0x435215
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x24], ecx
jmp 0x43521f
mov edx, dword [ebx + 0x1c0]
mov dword [esp + 0x24], edx
test eax, eax
jne 0x43522c
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x14], eax
jmp 0x435236
mov ecx, dword [ebx + 0x1bc]
mov dword [esp + 0x14], ecx
mov ecx, ebx
call fcn.004474f0
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x50], edx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435250
sub eax, edx
mov dword [esp + 0x1c], eax
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x860]
rep stosd dword es:[edi], eax
mov ecx, 0xc0
lea edi, [esp + 0xc60]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x460]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x1360]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0xf60]
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 + 0x18], ecx
jge 0x4352d1
lea edx, [eax + ecx]
test edx, edx
jge 0x4352d1
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x14]
add ecx, eax
cmp edx, ecx
jae 0x4352e9
sub edx, eax
cmp ecx, edi
mov dword [esp + 0x18], edx
jge 0x4352e9
mov dword [esp + 0x18], edi
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.00446b50
mov eax, dword [esi + 0x550]
shl eax, 1
xor edi, edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], edi
jle 0x43545b
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xc60]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
jmp 0x435330
mov eax, dword [esp + 0x10]
movsx ecx, byte [eax]
push ecx
call fcn.00466312
add esp, 4
test eax, eax
je 0x435383
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 2
push edx
push eax
call fcn.00465720
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push 2
push edx
push eax
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 0x4353ae
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 1
push ecx
push edx
call fcn.00465720
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push 1
push ecx
push edx
call dword [0x489030]
mov eax, dword [esp + 0x3c]
shl eax, 1
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + ebx*4 + 0x860], eax
mov dword [esp + ebx*4 + 0x460], ecx
mov dword [esp + ebx*4 + 0x60], eax
jge 0x4353ed
lea edx, [eax + edi]
test edx, edx
mov dword [esp + ebx*4 + 0x460], edi
jge 0x4353ed
mov dword [esp + ebx*4 + 0x460], ecx
mov dword [esp + ebx*4 + 0x60], ecx
mov ecx, dword [esp + 0x24]
lea edx, [eax + edi]
cmp ecx, edx
jae 0x435413
sub eax, ecx
add eax, edi
cmp ecx, edi
mov dword [esp + ebx*4 + 0x60], eax
jae 0x435413
xor eax, eax
mov dword [esp + ebx*4 + 0x460], eax
mov dword [esp + ebx*4 + 0x60], eax
jmp 0x435415
xor eax, eax
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov dword [esp + ebx*4 + 0x1360], eax
mov eax, dword [esp + 0x18]
add edx, 3
add edi, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + ebx*4 + 0xf60], eax
mov eax, dword [esp + 0x14]
inc ebx
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 0x435330
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x28]
mov edi, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.00446b90
mov ecx, edi
call fcn.00446eb0
mov edx, dword [esi + 0x53c]
mov ecx, dword [esi + 0x540]
mov dword [esp + 0x48], eax
mov eax, 1
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0x544]
mov dword [esi + 0x53c], eax
mov dword [esp + 0x30], ecx
mov dword [esi + 0x540], eax
mov dword [esi + 0x544], eax
mov eax, dword [esi + 0x554]
lea ecx, [eax + 8]
imul ecx, ecx, 0x780
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x550]
xor edi, edi
mov dword [esp + 0x1c], ecx
mov ecx, edx
cmp ecx, edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], edi
jge 0x4354d9
xor ecx, ecx
cmp eax, edi
jge 0x4354df
xor eax, eax
mov dword [esi + 0x554], eax
mov eax, dword [esi + 0x3dc]
push 0x489bd5
mov dword [esi + 0x550], ecx
push eax
mov ecx, esi
call fcn.00428780
mov eax, dword [esi + 0x54c]
imul eax, dword [esp + 0x24]
add eax, dword [esi + 0x548]
test ebx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0xc], edi
jle 0x435697
lea ecx, [esp + 0xc60]
mov dword [esp + 0x18], ecx
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
xor edx, edx
test eax, eax
jle 0x43557c
mov edi, dword [esp + edi*4 + 0x860]
add edi, 8
lea eax, [edi + edi*2]
mov dword [esp + 0x10], eax
jmp 0x435550
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
mov ebx, ecx
shr ecx, 2
add edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
add edx, 0x780
cmp edx, eax
jl 0x435550
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435585
sub eax, edx
cmp dword [esi + 0x538], 0xa8c
mov edx, dword [esi + 0x3dc]
mov ecx, 4
jne 0x4355ae
mov ecx, dword [esi + 0x554]
add ecx, 4
push eax
push ebx
push 4
push ecx
push edx
call dword [0x48902c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + edi*4 + 0x860]
neg eax
add ebx, eax
lea eax, [eax + eax*2 + 0x780]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + edi*4 + 0xf60]
mov dword [esp + 0x54], eax
mov eax, dword [esp + edi*4 + 0x1360]
cmp eax, ebx
mov edx, 0x1e0c
jge 0x43566a
sub ebx, eax
mov dword [esp + 0x10], ebx
nop
mov eax, dword [esp + edi*4 + 0x460]
mov ebx, dword [esp + edi*4 + 0x60]
cmp eax, ebx
jge 0x435653
sub ebx, eax
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x34]
cmp byte [edx + eax], 0
je 0x435644
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
shl eax, 8
or eax, ebx
mov ebx, dword [esp + 0x20]
shl eax, 8
or eax, ebx
mov ebx, dword [esp + 0x48]
mov dword [ebx + ecx*4], eax
mov eax, dword [esp + 0x50]
mov byte [ecx + eax], 0xff
mov eax, dword [esp + 0xc]
inc ecx
add edx, 3
dec eax
mov dword [esp + 0xc], eax
jne 0x435615
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
add ecx, eax
mov eax, dword [esp + 0x10]
add edx, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x435600
mov eax, dword [esp + edi*4 + 0x860]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ebx, eax
mov eax, dword [esp + 0x2c]
inc edi
add ecx, 3
cmp edi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], ecx
jl 0x435530
mov eax, dword [esi + 0x42c]
test eax, eax
je 0x4356ca
mov ecx, dword [esi + 0x3dc]
push eax
push ecx
call dword [0x48904c]
mov edx, dword [esi + 0x428]
push edx
call dword [0x489054]
xor eax, eax
mov dword [esi + 0x428], eax
mov dword [esi + 0x42c], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x540], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x53c], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x554], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x544], edx
mov dword [esi + 0x550], eax
call fcn.00446f20
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8