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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
call fcn.00406df0
mov eax, dword [esp + 0x40]
push eax
call dword [0x42b2ac]
mov ebp, eax
test ebp, ebp
mov dword [ebx + 0x7c], ebp
jne 0x4068a8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x44]
mov edi, 0x434430
mov dword [ebx + 0x48], ecx
mov ecx, 3
mov esi, ebp
xor edx, edx
mov dword [ebx + 0x78], ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x4069de
lea eax, [ebp + 3]
mov ecx, 3
mov edi, 0x43442c
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4068f3
mov esi, eax
mov ecx, 3
mov edi, 0x434428
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4069de
mov esi, dword [esp + 0x40]
mov dword [ebx + 0x7c], 0
push esi
call dword [0x42b2b0]
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
call dword [0x42b584]
test eax, eax
je 0x406923
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
lea esi, [ebx + 0x74]
push esi
push 0x42ecdc
push 0
push edx
push eax
call dword [0x42b32c]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x406958
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esi]
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebx + 0x1c]
push eax
call dword [0x42b37c]
mov edi, dword [0x42b0c4]
mov esi, eax
push 0x9ec
push 0x58
push esi
call edi
mov ecx, dword [esp + 0x44]
mov ebp, dword [0x42b2b4]
push eax
push ecx
call ebp
push 0x9ec
push 0x5a
push esi
mov dword [ebx + 0x3c], eax
call edi
mov edx, dword [esp + 0x1c]
push eax
push edx
call ebp
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x1c]
push esi
push eax
call dword [0x42b378]
mov edx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x3c]
push edx
push eax
mov ecx, ebx
call fcn.00407a20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
lea esi, [ebp + 6]
xor eax, eax
mov dword [ebx + 0x54], 1
mov dword [ebx + 0x80], esi
mov al, byte [esi + 4]
mov ecx, eax
sar ecx, 7
cmp ecx, 1
jne 0x406a49
fld qword [0x42c9f8]
and eax, 7
inc eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
call fcn.004107c0
fmul qword [0x42c9f0]
call fcn.00410798
xor ecx, ecx
mov dword [ebx + 0x50], eax
mov cl, byte [esi + 5]
xor eax, eax
mov edi, ecx
xor ecx, ecx
lea edx, [ebp + edi*2]
mov ah, byte [edi + edx + 0xf]
mov cl, byte [edi + edx + 0xd]
mov al, byte [edi + edx + 0xe]
lea edi, [edi + edx + 0xd]
shl eax, 8
or eax, ecx
mov dword [ebx + 0x44], eax
xor edx, edx
xor eax, eax
mov dx, word [esi]
mov ecx, ebx
mov dword [ebx + 0x3c], edx
mov ax, word [esi + 2]
mov dword [ebx + 0x40], eax
xor edi, edi
xor esi, esi
call fcn.00407050
mov ecx, ebx
call fcn.00407060
test eax, eax
je 0x406a80
mov ecx, ebx
inc esi
call fcn.00407060
test eax, eax
jne 0x406a70
cmp esi, edi
jne 0x406a9a
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x7c], edi
push ecx
call dword [0x42b2b0]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
cmp esi, 1
jne 0x406b09
mov esi, dword [esp + 0x40]
mov dword [ebx + 0x7c], edi
push esi
call dword [0x42b2b0]
lea edx, [esp + 0x10]
push edx
push edi
push esi
call dword [0x42b584]
test eax, eax
je 0x406aca
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
lea eax, [ebx + 0x74]
push eax
push 0x42ecdc
push edi
push ecx
push edx
call dword [0x42b32c]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x406afe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x4069c5
mov ecx, ebx
call fcn.00407050
lea eax, [esp + 0x38]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebx
call fcn.004077a0
mov esi, eax
cmp esi, edi
je 0x406d9c
lea edx, [esp + 0x44]
mov dword [esp + 0x44], edi
push edx
push 1
push esi
call dword [0x42b584]
test eax, eax
je 0x406b5c
push esi
call dword [0x42b2b8]
jmp 0x406d70
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x20]
push eax
push 0x42ecdc
push edi
push ecx
push edx
call dword [0x42b32c]
test eax, eax
mov eax, dword [esp + 0x44]
je 0x406b8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406d70
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x90]
add ebx, 0x84
sub esi, ecx
mov eax, 0x92492493
mov ebp, ecx
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x406ca8
mov edi, dword [ebx + 4]
test edi, edi
je 0x406be7
mov esi, ecx
mov eax, 0x92492493
sub esi, edi
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov esi, edx
ja 0x406bec
mov esi, 1
test edi, edi
jne 0x406bf4
xor edx, edx
jmp 0x406c09
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea edi, [edx + esi]
test edi, edi
mov eax, edi
jge 0x406c14
xor eax, eax
lea edx, [eax*8]
sub edx, eax
shl edx, 2
push edx
call fcn.00422f6a
add esp, 4
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push esi
push ebp
push eax
call fcn.00407bb0
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.00407bf0
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
add edx, 0x1c
mov ecx, ebx
push edx
push eax
push ebp
call fcn.00407bb0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.00407ba0
mov eax, dword [ebx + 4]
push eax
call fcn.00422f93
lea ecx, [edi*8]
add esp, 4
sub ecx, edi
lea edx, [esi + ecx*4]
mov ecx, ebx
mov dword [ebx + 0xc], edx
call fcn.00407b70
inc eax
mov dword [ebx + 4], esi
lea ecx, [eax*8]
sub ecx, eax
lea edx, [esi + ecx*4]
mov dword [ebx + 8], edx
jmp 0x406d6c
mov esi, ecx
mov eax, 0x92492493
sub esi, ebp
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x406d1d
lea edx, [ebp + 0x1c]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.00407bb0
mov esi, dword [ebx + 8]
lea eax, [esp + 0x20]
mov ecx, esi
push eax
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push esi
call fcn.00407bf0
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x406d68
mov edi, ebp
add ebp, 0x1c
mov ecx, 7
lea esi, [esp + 0x20]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x406d07
jmp 0x406d68
lea eax, [ecx - 0x1c]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.00407bb0
mov edx, dword [ebx + 8]
lea eax, [edx - 0x1c]
cmp ebp, eax
je 0x406d4d
sub eax, 0x1c
sub edx, 0x1c
mov ecx, 7
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x406d38
lea eax, [ebp + 0x1c]
cmp ebp, eax
je 0x406d68
mov edi, ebp
add ebp, 0x1c
mov ecx, 7
lea esi, [esp + 0x20]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x406d54
add dword [ebx + 8], 0x1c
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, ebx
call fcn.004077a0
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x406b3a
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x7c], edi
push eax
call dword [0x42b2b0]
mov eax, dword [ebx + 0x88]
cmp eax, edi
je 0x406dd5
mov ecx, dword [ebx + 0x8c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
jne 0x4069c5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8