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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x1016f3b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
mov eax, dword [0x101b6f10]
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x27c], eax
call fcn.10152860
push 0x15
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [esp + 0x60]
mov dword [esp + 0x294], ebx
call fcn.10152f50
test al, al
jne 0x1004004a
mov esi, 0x80004005
jmp 0x100403c2
push pe_nt_image_headers32
call fcn.10157c43
pop ecx
mov dword [edi + 0x148], eax
push 0x304
call fcn.10157c43
pop ecx
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x28c], 1
je 0x10040093
push 0x40
pop ecx
push fcn.1003df55
push 0x1003e072
push ecx
lea esi, [eax + 4]
push 0xc
push esi
mov dword [eax], ecx
call fcn.10159f02
jmp 0x10040095
xor esi, esi
mov eax, dword [edi + 0x148]
and dword [esp + 0x28], 0
mov byte [esp + 0x28c], 0
mov dword [ebx + eax], esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152990
xor esi, esi
cmp dword [esp + 0x20], esi
jle 0x100400fa
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152990
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [edi + 0x148]
mov ecx, dword [ebx + eax]
add ecx, dword [esp + 0x30]
call fcn.1003d0d3
inc esi
cmp esi, dword [esp + 0x20]
jl 0x100400c1
add dword [esp + 0x28], 0xc
cmp dword [esp + 0x28], 0x300
jl 0x100400ab
add ebx, 4
cmp ebx, 0x100
jl 0x1004005b
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152990
and dword [esp + 0x1c], 0
cmp dword [esp + 0x20], 0
jle 0x1004025e
push 0x90
call fcn.10157b9f
pop ecx
xor esi, esi
cmp eax, esi
je 0x10040152
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov esi, eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x290], 0
call fcn.10152990
lea eax, [esp + 0x27]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152940
cmp byte [esp + 0x27], 0
lea ecx, [esp + 0x58]
setne al
mov byte [esi], al
lea eax, [esp + 0x50]
push eax
call fcn.10152990
mov eax, dword [esp + 0x50]
mov dword [esi + 4], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152990
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.100098d0
and dword [esp + 0x28], 0
cmp dword [esp + 0x34], 0
jle 0x100401ff
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152990
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152990
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.1003e032
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x34]
jl 0x100401b9
push 0x40
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0x60]
call fcn.101528e0
push 0x18
lea eax, [esi + 0x60]
push eax
lea ecx, [esp + 0x60]
call fcn.101528e0
xor eax, eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0x170]
mov dword [esp + 0x44], esi
call fcn.1003d1f5
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jl 0x10040136
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152990
xor esi, esi
cmp dword [esp + 0x20], esi
jle 0x1004029e
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152990
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call fcn.10028b51
inc esi
cmp esi, dword [esp + 0x20]
jl 0x10040274
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152990
xor esi, esi
cmp dword [esp + 0x20], esi
jle 0x100402de
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
call fcn.10152990
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call fcn.10028b51
inc esi
cmp esi, dword [esp + 0x20]
jl 0x100402b4
lea ecx, [esp + 0x58]
call fcn.101528a0
cmp byte [edi + 0x1a4], 0
je 0x100403c0
mov eax, dword [edi + 0x174]
mov ebx, dword [eax]
mov dword [esp + 0x1c], ebx
jmp 0x100403b8
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100403a5
fld dword [eax + 0x50]
push ecx
fdiv dword [edi + 0x1a8]
push ecx
fstp qword [esp]
call fcn.1015a390
call fcn.10158344
mov esi, eax
mov eax, dword [ebx + 0x10]
fld dword [eax + 0x58]
fdiv dword [edi + 0x1a8]
fstp qword [esp]
call fcn.1015a390
pop ecx
pop ecx
call fcn.10158344
test esi, esi
jl 0x100403a5
cmp esi, dword [edi + 0x19c]
jge 0x100403a5
test eax, eax
jl 0x100403a5
cmp eax, dword [edi + 0x1a0]
jge 0x100403a5
lea ecx, [ebx + 0xc]
push ecx
lea ecx, [esp + 0x3c]
shl eax, 2
push ecx
mov ecx, dword [edi + 0x198]
mov dword [esp + 0x30], eax
mov eax, dword [eax + ecx]
lea esi, [esi + esi*8]
shl esi, 2
lea ecx, [eax + esi + 0x18]
call fcn.10023a43
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x28]
add eax, 4
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi + 0x198]
mov ecx, dword [ecx + eax]
add ecx, esi
call fcn.1003d0d3
lea ecx, [esp + 0x1c]
call fcn.100462a8
mov eax, dword [edi + 0x174]
mov ebx, dword [esp + 0x1c]
cmp ebx, eax
jne 0x10040305
xor esi, esi
or dword [esp + 0x28c], 0xffffffff
lea ecx, [esp + 0x58]
call fcn.10152d30
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x27c]
mov eax, esi
call fcn.101581be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc