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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x38]
and dword [ebp + 8], 0xffffffdf
mov eax, dword [0x800702bc]
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x80066d83
test byte [ebp + 0xc], 0x40
jne 0x80066d83
xor edi, edi
jmp 0x80066d88
mov edi, 1
mov eax, dword [ebp + 0x470]
test byte [eax + 4], 6
jne 0x80067039
cmp dword [0x800702b8], ebx
je 0x80067039
push esi
push ebp
call fcn.80065250
cmp edi, ebx
mov edx, eax
mov esi, 1
je 0x80066dd3
cmp dword [0x800702c0], ebx
je 0x80066dcb
cmp dword [ebp + 0x488], ebx
je 0x80066dcb
mov esi, 0x10001
push edx
call fcn.80066c20
mov edx, eax
mov dword [edx], 0x40294
mov dword [edx + 4], esi
mov dword [edx + 8], 0x40314
mov ecx, 1
mov dword [edx + 0xc], ecx
mov eax, dword [0x8007032c]
mov dword [edx + 0x10], 0x417c4
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], 0x403b8
mov dword [edx + 0x1c], ecx
call fcn.80065b10
mov dword [edx + 0x20], 0x40298
mov dword [edx + 0x24], eax
push eax
add edx, 0x28
push edx
mov dword [esp + 0x1c], eax
call fcn.80066a80
mov edi, dword [ebp + 0x488]
cmp edi, ebx
mov esi, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], ebx
je 0x8006701c
mov ebx, 0x41024
mov edi, edi
push ebp
mov dword [ebp], esi
call fcn.80065250
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push edi
push eax
call fcn.80066980
mov esi, eax
cmp dword [edi], 3
jne 0x80066eff
mov ecx, dword [esp + 0x10]
add ecx, ecx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x40]
lea edx, [edi + 0x6c]
or ecx, eax
mov dword [esp + 0x40], ecx
lea ecx, [ebp + 0x880]
push ecx
push 0
push edx
lea eax, [esp + 0x24]
push eax
call fcn.80067980
lea ecx, [esp + 0x18]
push ecx
call fcn.80067c30
push 0x8006c864
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.80067950
lea ecx, [esp + 0x24]
push ecx
call fcn.80067c30
mov dword [esi], ebx
mov dword [esi + 4], 0x7149f2ca
lea edx, [ebx + 0x140004]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x20], edx
add esi, 0x24
jmp 0x80066ff7
fld dword [edi + 0x4c]
lea eax, [ebp + 0x880]
push eax
fstp dword [esi + 4]
push 0x3f800000
lea eax, [edi + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esi], ebx
call fcn.80067980
lea edx, [ebx + 0x140038]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x54]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x5c]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x20], edx
mov eax, dword [edi]
add esi, 0x24
add ecx, ecx
cmp eax, 1
jne 0x80066f71
mov eax, 2
shl eax, cl
or dword [esp + 0x40], eax
jmp 0x80066ff7
mov eax, dword [esp + 0x40]
mov edx, 3
shl edx, cl
lea ecx, [esp + 0x18]
or eax, edx
mov dword [esp + 0x40], eax
lea eax, [ebp + 0x880]
push eax
push 0
lea eax, [edi + 0x6c]
push eax
push ecx
call fcn.80067980
lea edx, [esp + 0x18]
push edx
call fcn.80067c30
mov eax, dword [edi + 0x84]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.80067920
lea eax, [ebx + 0x18001c]
mov dword [esi], eax
mov ecx, dword [edi + 0x78]
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x7c]
mov dword [esi + 8], edx
mov eax, dword [edi + 0x80]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x20]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x88]
mov dword [esi + 0x1c], ecx
add esi, 0x20
mov edx, dword [esp + 0x10]
inc edx
add ebx, 0x80
cmp ebx, 0x41424
mov dword [esp + 0x10], edx
je 0x8006701c
mov edi, dword [edi + 0x8c]
test edi, edi
jne 0x80066e40
mov edx, dword [esp + 0x40]
mov dword [esi], 0x403bc
mov dword [esi + 4], edx
add esi, 8
mov dword [ebp], esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret 4
push ebp
call fcn.80065250
mov dword [eax + 4], ebx
mov dword [eax], 0x40314
mov dword [eax + 0xc], edi
mov dword [eax + 8], 0x403b8
mov dword [eax + 0x10], 0x40294
mov dword [eax + 0x14], 0x20001
mov ecx, dword [0x8007032c]
mov dword [eax + 0x18], 0x417c4
mov dword [eax + 0x1c], ecx
add eax, 0x20
pop edi
mov dword [ebp], eax
pop ebp
pop ebx
add esp, 0x2c
ret 4