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

Disassembly:
sub esp, 0xe8
push ebp
mov bp, word [esp + 0xf0]
test bp, bp
je 0x4133e3
mov edx, dword [esp + 0xf4]
push ebx
push esi
push edi
test edx, edx
je 0x4130ea
mov esi, dword [edx + 4]
mov eax, dword [edx + 0xc]
mov edi, dword [edx]
mov edx, dword [edx + 8]
sub edx, edi
sub eax, esi
lea ebx, [edi - 0x190]
add edx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edx
mov edx, 0x12b
sub edx, esi
sub edx, eax
mov dword [esp + 0x18], edx
add edx, eax
mov dword [esp + 0x20], edx
jmp 0x41310a
mov dword [esp + 0x14], 0xfffffe6f
mov dword [esp + 0x1c], 0x191
mov dword [esp + 0x18], 0xfffffed3
mov dword [esp + 0x20], 0x12d
mov si, word [ecx + 0x86]
lea eax, [esp + 0x74]
movsx edx, bp
shl edx, 0x18
mov ecx, 5
xor ebx, ebx
cmp si, bx
mov dword [eax], edx
je 0x413133
mov edi, edx
or edi, 0xffffff
mov dword [eax], edi
mov dword [eax - 4], ebx
add eax, 0x10
dec ecx
jne 0x413122
fild dword [esp + 0x14]
lea edx, [esp + 0x28]
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
fst dword [esp + 0x68]
fild dword [esp + 0x20]
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
fst dword [esp + 0x10]
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], 0
fstp dword [esp + 0x78]
fild dword [esp + 0x18]
mov dword [esp + 0x8c], eax
mov eax, dword [0x4711a8]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
fst dword [esp + 0x7c]
fild dword [esp + 0x1c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x50], 0x3f800000
fst dword [esp + 0x88]
fstp dword [esp + 0x98]
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x28], 0x3f800000
mov ecx, dword [eax]
push edx
fstp dword [esp + 0xa0]
push 0x100
push eax
call dword [ecx + 0x94]
mov eax, dword [0x4711a8]
lea edx, [esp + 0x28]
push edx
push 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
push 0x461c4000
push ebx
push 0x44160000
lea eax, [esp + 0xc4]
push 0x44480000
push eax
call fcn.004262f2
mov eax, dword [0x4711a8]
lea edx, [esp + 0xb8]
push edx
push 3
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov eax, dword [0x4711a8]
push ebx
push 0x89
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x4711a8]
push 1
push 0x16
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [0x4711a8]
push 3
push 8
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x4711a8]
push 1
push 0x1b
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [0x4711a8]
push 5
push 0x13
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x4711a8]
push 6
push 0x14
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
cmp dword [esp + 0x104], ebx
je 0x41330f
mov eax, dword [0x4711a8]
push 1
push 0x34
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x4711a8]
push 2
push 0x39
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [0x4711a8]
push 3
push 0x38
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x4711a8]
lea ecx, [esp + 0x10]
push ecx
push ebx
mov edx, dword [eax]
push 0x42
push 0x10
push 0x80
push eax
call dword [edx + 0x5c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ebx
push ecx
mov edx, dword [eax]
push 0x50
push ebx
push eax
call dword [edx + 0x2c]
mov edi, dword [esp + 0x24]
mov ecx, 0x14
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov eax, dword [0x4711a8]
push ebx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf4]
mov eax, dword [0x4711a8]
push 0x42
push eax
mov edx, dword [eax]
call dword [edx + 0x130]
mov eax, dword [0x4711a8]
mov edx, dword [esp + 0x10]
push 0x10
push edx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x14c]
mov eax, dword [0x4711a8]
push 2
push ebx
push 5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x118]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4711a8]
push 1
push 0x89
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x4711a8]
push ebx
push 0x34
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [0x4711a8]
push 1
push 0xe
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xe8
ret 0xc