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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [esp + 0x18], edx
push esi
push edi
mov dword [esp + 0x1c], ebx
mov esi, dword [ebx + 8]
test esi, esi
jne 0x470195
cmp dword [ebx + 0x78], esi
jne 0x47018e
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x47018e
mov byte [ebx + 0x17], 1
call fcn.00436f50
mov esi, eax
mov eax, dword [ebx + 0x28]
dec dword [ebx + 0x38]
dec eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebx + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jge 0x4701fc
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x6c]
movzx edi, byte [eax + 0x18]
cmp dword [esi + 0x70], ecx
jg 0x4701d1
push 0
push edx
push edi
mov edx, 0x31
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x4701fc
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov edi, dword [ecx + 0x14]
mov dword [esp + 0x24], edi
test edi, edi
jle 0x4702a3
mov edi, dword [esp + 0x10]
nop dword [eax + eax]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dx, word [edx + eax*4]
call fcn.00461200
mov edx, dword [ebp + 0x18]
mov ecx, dword [esi + 0x6c]
inc edx
cwde
add edx, eax
cmp dword [esi + 0x70], ecx
jg 0x470259
push 0
push dword [esp + 0x14]
mov ecx, esi
push edx
mov edx, 0x32
call fcn.00437140
mov edi, dword [esp + 0x1c]
add esp, 0xc
jmp 0x470284
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov ebx, dword [ecx + 0x14]
mov dword [esp + 0x24], ebx
cmp eax, ebx
jl 0x470220
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
cmp dword [ebp + 0x20], 0
jne 0x470929
cmp dword [ebp + 0xc], 0
jne 0x470522
mov al, byte [ebx + 0x13]
test al, al
jne 0x4702c6
inc dword [ebx + 0x2c]
mov edi, dword [ebx + 0x2c]
jmp 0x4702d5
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov edi, dword [ebx + eax*4 + 0xa0]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dx, word [eax]
call fcn.00461200
mov edx, dword [ebp + 0x18]
mov ecx, dword [esi + 0x6c]
inc edx
cwde
add edx, eax
cmp dword [esi + 0x70], ecx
jg 0x470306
push 0
push edi
push edx
mov edx, 0x51
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x470335
mov ebx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x51
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x24], edx
cmp dword [esi + 0x70], edx
jg 0x47035b
push 0
push 0
push edi
mov edx, 0xd
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x47038a
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
jne 0x470400
cmp dword [ebp + 0x1c], 1
jne 0x470400
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4703bb
push edi
push dword [esp + 0x14]
mov edx, 0x35
mov ecx, esi
push dword [ebp + 0x18]
call fcn.00437140
add esp, 0xc
jmp 0x4703e9
mov edx, dword [ebp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x470400
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x20]
mov ecx, ebx
push 0x70
push dword [ebp + 8]
push edx
mov edx, dword [esp + 0x24]
call fcn.004728d0
mov ecx, dword [esi + 0x6c]
add esp, 0xc
cmp dword [esi + 0x70], ecx
jg 0x470438
push edi
push 0
push dword [esp + 0x20]
mov edx, 0x1f
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x470467
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x470488
push 0
push dword [esp + 0x14]
mov edx, 9
mov ecx, esi
push 0
call fcn.00437140
add esp, 0xc
jmp 0x4704bb
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x4704cd
mov eax, 0x5160e0
jmp 0x4704d9
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
add eax, 0xffffffe0
mov dword [eax], edx
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x4704ed
mov eax, 0x5160d8
jmp 0x4704fa
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
test edi, edi
je 0x470929
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x470929
movzx eax, al
mov dword [ebx + eax*4 + 0xa0], edi
inc byte [ebx + 0x13]
jmp 0x470929
cmp edi, 1
jne 0x47054f
mov al, byte [ebx + 0x13]
test al, al
jne 0x47053a
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
jmp 0x470579
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0xa0]
mov dword [esp + 0x14], eax
jmp 0x470579
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x14], ecx
cmp edi, edx
jg 0x47056a
lea eax, [edi + ecx]
sub edx, edi
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], edx
jmp 0x470579
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 1]
add eax, edi
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax + 0x2c]
cmp dword [esi + 0x70], ecx
jg 0x4705a1
push dword [esp + 0x20]
mov ecx, esi
push edx
push dword [esp + 0x20]
mov edx, 0x70
call fcn.00437140
add esp, 0xc
jmp 0x4705d4
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x70
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 8]
mov ecx, ebx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
call fcn.00468e70
mov dword [esp + 0x28], eax
test eax, eax
je 0x47061f
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
cmp byte [ecx + 0x57], 0
je 0x470609
push eax
mov edx, 0xfffffff8
call fcn.00437b50
add esp, 4
jmp 0x47061f
mov eax, dword [edx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
mov edx, dword [esp + 0x28]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
test edi, edi
jle 0x4706ae
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dx, word [eax + ebx*4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call fcn.00461200
mov ecx, dword [ebp + 0x18]
inc ecx
cwde
add eax, ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x70], ecx
jg 0x47066e
mov edx, dword [esp + 0x20]
mov ecx, esi
push 0
push edx
push eax
mov edx, 0x50
call fcn.00437140
add esp, 0xc
jmp 0x4706a1
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
inc dword [esp + 0x20]
inc ebx
cmp ebx, edi
jl 0x470631
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
jne 0x470803
cmp dword [ebp + 0x1c], 1
jne 0x470803
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x28], ecx
lea eax, [ecx + 1]
add eax, edi
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x20], eax
test edi, edi
jle 0x4707b2
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov dx, word [ecx + eax*4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call fcn.00461200
mov ecx, dword [ebp + 0x18]
cwde
inc ecx
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
movzx edi, word [eax + ecx*2]
mov eax, dword [ebp + 0xc]
mov edx, edi
mov ecx, dword [eax + 0xc]
call fcn.00461200
mov ecx, dword [ebp + 0x18]
cwde
lea edx, [ecx + 1]
add edx, eax
mov eax, dword [ebp + 8]
cmp di, word [eax + 0x20]
mov edi, dword [esp + 0x28]
cmove edx, ecx
cmp dword [esi + 0x70], ebx
jg 0x470750
push edx
push dword [esp + 0x30]
mov edx, 0x34
mov ecx, esi
push edi
call fcn.00437140
add esp, 0xc
jmp 0x47077b
lea eax, [ebx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov ebx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x34
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esi + 0x6c]
mov ecx, ebx
test ebx, ebx
jle 0x470799
mov eax, dword [esi + 0x68]
lea ecx, [ebx + ebx*4]
mov edx, 0x10
mov word [eax + ecx*4 - 0x12], dx
mov ebx, dword [esi + 0x6c]
mov ecx, ebx
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
inc eax
mov dword [esp + 0x20], eax
cmp eax, edi
jl 0x4706e6
mov ebx, dword [esp + 0x1c]
cmp dword [esi + 0x70], ecx
jg 0x4707d0
push 0
push dword [esp + 0x14]
mov edx, 9
mov ecx, esi
push 0
call fcn.00437140
add esp, 0xc
jmp 0x470803
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x47081e
mov edx, ecx
mov ecx, dword [ebx]
call fcn.00472a80
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x470840
push 0
push edi
push dword [esp + 0x1c]
mov edx, 0x60
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov edx, eax
jmp 0x470873
mov ebx, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push edi
push dword [esp + 0x30]
mov ecx, esi
call fcn.00437de0
mov ecx, dword [esi + 0x6c]
add esp, 8
mov dword [esp + 0x2c], ecx
cmp dword [esi + 0x70], ecx
jg 0x4708b1
push dword [esp + 0x14]
mov edx, 0x1d
mov ecx, esi
push dword [esp + 0x14]
push dword [esp + 0x20]
call fcn.00437140
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, eax
jmp 0x4708e8
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x1d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x4708ff
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
cmp edi, 1
jne 0x47091e
test edx, edx
je 0x470929
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x470929
movzx eax, al
mov dword [ebx + eax*4 + 0xa0], edx
inc byte [ebx + 0x13]
jmp 0x470929
cmp edi, dword [ebx + 0x1c]
jle 0x470929
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edx
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + 0x18]
test dl, dl
jne 0x470964
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
and eax, 0x80000
or eax, 0
jne 0x470964
cmp dword [ebx + 0x78], eax
jne 0x470964
cmp byte [ebx + 0x14], al
jne 0x470964
push 4
push 0xffffffffffffffff
push eax
push 2
mov edx, 0x313
mov ecx, ebx
call fcn.00468720
add esp, 0x10
jmp 0x4709cb
mov edi, dword [ebp + 0x1c]
mov al, dl
test edi, edi
jle 0x470980
test dl, dl
jne 0x470980
mov eax, dword [ebx + 0x78]
test eax, eax
cmovne ebx, eax
mov byte [ebx + 0x15], 1
mov al, byte [ecx + 0x18]
mov ecx, dword [esi + 0x6c]
movzx edx, al
cmp dword [esi + 0x70], ecx
jg 0x4709a0
push 0
push edi
push edx
mov edx, 0x9e
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x4709cb
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x9e
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4709e9
push edx
mov edx, esi
call fcn.004376f0
add esp, 4
jmp 0x4709f2
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x470a18
push 0
push 0
push dword [esp + 0x20]
mov edx, 0x7a
mov ecx, esi
call fcn.00437140
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
pop edi
pop esi
pop ebx
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esp, ebp
pop ebp
ret