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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x175c
call fcn.004779b0
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x3e0]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x228]
test eax, eax
push esi
push edi
mov dword [esp + 0x4c], ebx
jne 0x4351a5
mov edx, dword [ecx + 0x78]
jmp 0x4351ab
mov edx, dword [ecx + 0x1c0]
test eax, eax
mov dword [esp + 0x2c], edx
jne 0x4351b8
mov esi, dword [ecx + 0x7c]
jmp 0x4351be
mov esi, dword [ecx + 0x1bc]
call fcn.0045d550
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4351d0
sub eax, edx
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x868]
rep stosd dword es:[edi], eax
mov ecx, 0xc0
lea edi, [esp + 0xc68]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x468]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x1368]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0xf68]
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 0x435251
lea edx, [eax + ecx]
test edx, edx
jge 0x435251
mov dword [esp + 0x1c], edi
add ecx, eax
cmp esi, ecx
jae 0x435265
sub esi, eax
cmp ecx, edi
mov dword [esp + 0x1c], esi
jge 0x435265
mov dword [esp + 0x1c], edi
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
call fcn.00447270
mov eax, dword [ebx + 0x550]
shl eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
jle 0x4353d1
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xc68]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
movsx ecx, byte [eax]
push ecx
call fcn.00477f02
add esp, 4
test eax, eax
je 0x4352f9
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 2
push edx
push eax
call fcn.00477380
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push 2
push edx
push eax
call dword [0x49b030]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc ecx
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jmp 0x435324
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 1
push ecx
push edx
call fcn.00477380
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push 1
push ecx
push edx
call dword [0x49b030]
mov eax, dword [esp + 0x44]
shl eax, 1
xor ecx, ecx
cmp esi, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
mov dword [esp + edi*4 + 0x868], eax
mov dword [esp + edi*4 + 0x468], ecx
mov dword [esp + edi*4 + 0x68], eax
jge 0x435363
lea edx, [eax + esi]
test edx, edx
mov dword [esp + edi*4 + 0x468], esi
jge 0x435363
mov dword [esp + edi*4 + 0x468], ecx
mov dword [esp + edi*4 + 0x68], ecx
mov ecx, dword [esp + 0x2c]
lea edx, [eax + esi]
cmp ecx, edx
jae 0x435389
sub eax, ecx
add eax, esi
cmp ecx, esi
mov dword [esp + edi*4 + 0x68], eax
jae 0x435389
xor eax, eax
mov dword [esp + edi*4 + 0x468], eax
mov dword [esp + edi*4 + 0x68], eax
jmp 0x43538b
xor eax, eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
mov dword [esp + edi*4 + 0x1368], eax
mov eax, dword [esp + 0x1c]
add edx, 3
add esi, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + edi*4 + 0xf68], eax
mov eax, dword [esp + 0x18]
inc edi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x4352a6
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x34]
mov esi, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.004472b0
mov ecx, esi
call fcn.004475d0
mov edx, dword [ebx + 0x53c]
mov ecx, dword [ebx + 0x540]
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0x544]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x554]
mov dword [esp + 0x30], edx
lea edx, [ecx + 8]
imul edx, edx, 0x780
mov esi, eax
mov eax, 1
mov dword [ebx + 0x53c], eax
mov dword [ebx + 0x540], eax
mov dword [ebx + 0x544], eax
mov eax, dword [ebx + 0x550]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
jge 0x43544b
xor eax, eax
cmp ecx, edi
jge 0x435451
xor ecx, ecx
mov dword [ebx + 0x550], eax
mov eax, dword [ebx + 0x3dc]
push 0x49c291
mov dword [ebx + 0x554], ecx
push eax
mov ecx, ebx
call fcn.0042d5c0
mov eax, dword [ebx + 0x54c]
imul eax, dword [esp + 0x2c]
add eax, dword [ebx + 0x548]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x24], edi
jle 0x435644
lea ecx, [esp + 0xc68]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
xor edx, edx
test eax, eax
jle 0x4354f0
mov edi, dword [esp + edi*4 + 0x868]
add edi, 8
lea eax, [edi + edi*2]
mov dword [esp + 0x28], eax
jmp 0x4354c0
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
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 + 0x20]
add edx, 0x780
cmp edx, eax
jl 0x4354c0
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4354f7
sub eax, edx
cmp dword [ebx + 0x538], 0xa8c
mov edx, dword [ebx + 0x3dc]
mov ecx, 4
jne 0x435520
mov ecx, dword [ebx + 0x554]
add ecx, 4
push eax
mov eax, dword [esp + 0x1c]
push eax
push 4
push ecx
push edx
call dword [0x49b060]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + eax*2]
mov eax, dword [esp + edi*4 + 0x868]
neg eax
add edx, eax
lea edx, [edx + edx*2]
lea eax, [eax + eax*2 + 0x780]
mov dword [esp + 0x60], edx
mov edx, dword [esp + edi*4 + 0xf68]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + edi*4 + 0x1368]
cmp eax, edx
mov dword [esp + 0x10], 0x1e0c
jge 0x435617
sub edx, eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + edi*4 + 0x468]
mov eax, dword [esp + edi*4 + 0x68]
cmp edx, eax
jge 0x4355f4
sub eax, edx
mov dword [esp + 0x28], eax
jmp 0x4355a0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
cmp byte [eax + edx], 0
je 0x4355db
mov dl, byte [esp + 0x40]
mov al, byte [esp + 0x38]
mov byte [ecx + esi + 1], al
mov byte [ecx + esi + 2], dl
mov dl, byte [esp + 0x30]
mov byte [ecx + esi], dl
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x58]
mov byte [eax + edx], 0xff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add edx, 3
add ecx, 3
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
jne 0x4355a0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x5c]
add edx, eax
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
jne 0x435583
mov eax, dword [esp + edi*4 + 0x868]
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
inc edi
add ecx, 3
cmp edi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], ecx
jl 0x4354a0
mov eax, dword [ebx + 0x42c]
test eax, eax
je 0x435677
mov ecx, dword [ebx + 0x3dc]
push eax
push ecx
call dword [0x49b04c]
mov edx, dword [ebx + 0x428]
push edx
call dword [0x49b054]
xor eax, eax
mov dword [ebx + 0x428], eax
mov dword [ebx + 0x42c], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov dword [ebx + 0x540], ecx
mov ecx, dword [esp + 0x54]
mov dword [ebx + 0x53c], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x554], ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x544], edx
mov dword [ebx + 0x550], eax
call fcn.00447640
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8