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

Disassembly:
sub esp, 0x274
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [esp + 0x27c]
mov dword [esp], eax
push ebx
push ebp
lea edx, [eax + 0x18]
mov eax, dword [edx + 0x74]
mov dword [esp + 0x6c], eax
imul eax, eax, 0x24
push esi
mov esi, dword [edx + 0x48]
push edi
mov dword [esp + 0x50], esi
mov ecx, dword [esi + 0x4a8]
mov dword [esp + 0x58], ecx
mov ebp, dword [eax + esi + 0x58]
mov eax, dword [esi + 0x28]
mov ecx, dword [edx + 0xec]
mov dword [esp + 0x3c], ebp
mov eax, dword [eax + 0x150]
mov ebx, dword [eax + 0xc8]
xor eax, eax
mov edi, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
movzx eax, word [edx + 0xe8]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], edi
lea edx, [eax*4 + 8]
mov eax, dword [ecx + 0x10]
movzx ecx, word [ecx + 2]
imul ecx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x6c], edx
add ecx, eax
xor eax, eax
push eax
push Ordinal_2
push ebp
mov ebp, dword [esp + 0x294]
push ebp
mov dword [esp + 0x54], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], eax
call fcn.1003c730
test eax, eax
js 0x1009fe88
push edi
push 0xffffffffffffffff
push dword [esp + 0x44]
push ebp
call fcn.1003c730
test eax, eax
jns 0x1009fa56
cmp eax, 0xfffff9bd
jne 0x1009fe88
push dword [esp + 0x294]
lea eax, [esp + 0x6c]
push eax
push ebx
push dword [esp + 0x1c]
call fcn.100a0246
test eax, eax
js 0x1009fe88
mov eax, dword [esi + 0x4ac]
test eax, eax
jle 0x1009face
mov esi, dword [esi + 0x4a8]
lea ecx, [esi + eax*4]
mov eax, dword [esi]
mov dword [esp + 0x1c], ecx
cmp esi, ecx
jae 0x1009face
mov edi, dword [eax + 0xcc]
mov ecx, dword [edi]
test ecx, ecx
je 0x1009faa2
cmp dword [ecx], 0
jne 0x1009fab5
push eax
push dword [esp + 0x14]
push ebp
call fcn.100f1698
test eax, eax
js 0x1009fe88
mov edi, dword [edi]
add esi, 4
mov dword [esp + 0x24], edi
mov edi, dword [edi]
mov dword [esp + 0x18], edi
cmp esi, dword [esp + 0x1c]
jae 0x1009face
mov eax, dword [esi]
jmp 0x1009fa91
mov eax, dword [esp + 0x10]
push dword [eax + 0x124]
lea eax, [esp + 0x18]
push 0
push eax
push edi
push ebp
call fcn.100de9bb
test eax, eax
js 0x1009fe88
mov esi, dword [0x1017b204]
mov dword [esp + 0x30], esi
test esi, esi
jg 0x1009fb12
push 0xa
pop esi
cmp dword [esp + 0x290], esi
cmova esi, dword [esp + 0x290]
mov dword [esp + 0x30], esi
push esi
xor eax, eax
inc eax
push eax
push dword [esp + 0x1c]
push edi
push ebp
call fcn.100dfce7
xor eax, eax
cmp word [ebx + 0x44], ax
jle 0x1009fb6c
mov edi, dword [ebx]
inc eax
mov esi, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [esp + 0x18]
push ebp
call fcn.100de30c
mov ebx, eax
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 4], esi
test ebx, ebx
js 0x1009fe5f
mov esi, dword [esp + 0x30]
push dword [esp + 0x68]
mov eax, dword [esp + 0x14]
push dword [esp + 0x18]
add eax, 0x18
push edi
push ebp
push eax
call fcn.100dee16
mov ebx, eax
test ebx, ebx
js 0x1009fe5f
push dword [esp + 0x14]
mov eax, dword [esp + 0x14]
push edi
push ebp
add eax, 0x18
push eax
call fcn.100df004
mov ebx, eax
test ebx, ebx
js 0x1009fe3c
mov eax, dword [esp + 0x20]
xor ecx, ecx
inc ecx
mov dword [esp + 0x70], ecx
cmp eax, dword [esp + 0x44]
jae 0x1009fe38
test byte [eax], cl
je 0x1009fe38
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, esi
ja 0x1009fe38
xor eax, eax
push eax
push ecx
push dword [esp + 0x44]
push ebp
call fcn.1003c730
mov ebx, eax
test ebx, ebx
js 0x1009fe48
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x4ac]
test eax, eax
jle 0x1009fe04
mov esi, dword [ecx + 0x4a8]
mov ebx, dword [esi]
lea eax, [esi + eax*4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x1c], ebx
cmp esi, eax
jae 0x1009fe04
mov edx, dword [esp + 0x74]
mov eax, esi
shl edx, 5
sub eax, dword [esp + 0x58]
mov dword [esp + 0x64], edx
mov dword [esp + 0x28], eax
mov ecx, dword [ebx + 0xcc]
mov dword [esp + 0x78], ecx
sar eax, 2
lea edi, [ecx + 0x24]
movzx ecx, word [ecx + 0xc]
and ecx, 0x80
add edi, edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + eax*4]
xor eax, eax
push eax
lea eax, [esp + 0x50]
add ecx, 8
push eax
push 0x100
lea eax, [esp + 0x18c]
mov dword [esp + 0x30], ecx
push eax
push dword [ebx + 0xe0]
push ebp
call fcn.100adddf
mov ebx, eax
test ebx, ebx
js 0x1009fe48
cmp ebx, 0x3ec
je 0x1009fdb9
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov ebx, dword [edi + 0x18]
mov dword [esp + 0x2c], ebx
cmp dword [eax], ecx
je 0x1009fcc0
push 4
push eax
push ebx
push ebp
call fcn.1003c5e0
test eax, eax
js 0x1009fe88
push 2
pop eax
push eax
jmp 0x1009fcc1
push ecx
push ebx
push ebp
call fcn.1003c920
mov ebx, eax
test ebx, ebx
js 0x1009fe48
xor eax, eax
inc eax
or word [edi + 0x14], ax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x18]
push edi
push dword [esp + 0x1c]
push ebp
call fcn.100ddcc4
mov ebx, eax
test ebx, ebx
js 0x1009fe4f
xor eax, eax
inc eax
push eax
lea eax, [esp + 0x4c]
push eax
push 0x100
lea eax, [esp + 0x8c]
push eax
push edi
push dword [esp + 0x24]
push ebp
call fcn.100f1f8d
mov ebx, eax
test ebx, ebx
js 0x1009fe4f
mov eax, 0xfffe
and word [edi + 0x14], ax
cmp dword [esp + 0x60], 0
je 0x1009fd58
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x184]
push eax
push dword [esp + 0x80]
push dword [esp + 0x1c]
call fcn.100a07e7
jmp 0x1009fd81
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x4c], eax
jne 0x1009fd7f
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x188]
push eax
call fcn.10118aac
add esp, 0xc
test eax, eax
je 0x1009fd85
xor eax, eax
test eax, eax
je 0x1009fde8
lea eax, [esp + 0x7c]
push eax
push 4
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x38]
push ebp
call fcn.1003cef0
mov ebx, eax
test ebx, ebx
js 0x1009fe4f
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x34], eax
cmp dword [ecx], eax
jne 0x1009fdb9
mov eax, dword [esp + 0x54]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
add esi, 4
mov ecx, dword [esp + 0x5c]
add eax, 4
mov dword [esp + 0x28], eax
cmp esi, ecx
jae 0x1009fdd7
mov ebx, dword [esi]
mov dword [esp + 0x1c], ebx
jmp 0x1009fddb
mov ebx, dword [esp + 0x1c]
cmp esi, ecx
jae 0x1009fe00
mov edx, dword [esp + 0x64]
jmp 0x1009fc32
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, 5
je 0x1009fe38
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
jmp 0x1009fe0e
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push 2
pop ecx
or word [eax], cx
add eax, dword [esp + 0x6c]
push dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push edi
push ebp
add eax, 0x18
push eax
call fcn.100df004
mov ebx, eax
test ebx, ebx
js 0x1009fe3c
mov esi, dword [esp + 0x30]
jmp 0x1009fbaa
test ebx, ebx
jns 0x1009fe44
cmp ebx, 0xfffff9bd
jne 0x1009fe48
xor eax, eax
mov ebx, eax
cmp dword [esp + 0x34], 0
je 0x1009fe5b
push 3
push dword [esp + 0x30]
push ebp
call fcn.1003c920
mov edi, dword [esp + 0x18]
push dword [esp + 0x14]
call dword [0x10139124]
push ebp
push dword [esp + 0x18]
xor eax, eax
push edi
inc eax
push eax
push dword [esp + 0x24]
call dword [0x10139148]
movzx eax, ax
push eax
call fcn.100dea33
mov eax, ebx
mov ecx, dword [esp + 0x280]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011705d
add esp, 0x274
ret 0x10