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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x1c411108]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], eax
test edi, edi
jne 0x10009992
mov eax, 0x80004003
jmp 0x10009d18
cmp dword [edi], 0x6c
je 0x100099a1
mov eax, 0x80070057
jmp 0x10009d18
lea eax, [ebx + 0x14]
mov byte [esp + 0x17], 0
push eax
mov dword [esp + 0x38], eax
call dword [0x1c4120dc]
mov ecx, dword [ebx + 0x94]
mov dword [esp + 0x20], 1
test ecx, ecx
je 0x10009b0f
cmp byte [ebp + 0x14], 0
jne 0x10009b0f
cmp byte [ebp + 0x10], 0
je 0x100099e8
test byte [ebx + 0x148], 6
je 0x100099fd
jmp 0x10009b0f
cmp dword [esp + 0x18], 0
jne 0x10009b0f
cmp dword [edi + 0x54], 8
jne 0x10009b0f
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
push ecx
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x1c41215c]
call esi
test eax, eax
js 0x10009b0f
mov byte [esp + 0xf], 0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
push ecx
mov esi, dword [eax]
push 1
push eax
mov ecx, dword [esi + 0xc]
call dword [0x1c41215c]
call dword [esi + 0xc]
test eax, eax
jne 0x10009af7
mov esi, dword [esp + 0x10]
mov edx, 0x1c4027e0
xor ecx, ecx
mov eax, dword [esi + ecx*4 + 0x2c]
cmp eax, dword [edx + ecx*4]
jne 0x10009ae5
inc ecx
cmp ecx, 4
jne 0x10009a51
cmp byte [ebp + 0x10], 0
mov edx, dword [esi + 0x44]
je 0x10009a9e
push 0x1b
mov esi, edi
lea edi, [esp + 0xac]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x34]
mov dword [esp + 0xb4], eax
mov eax, dword [edx + 0x38]
test eax, eax
jns 0x10009a8e
neg eax
mov dword [esp + 0xb0], eax
lea edi, [esp + 0xa8]
jmp 0x10009adc
push 0x10
lea eax, [esi + 0x10]
push 0x1c402740
push eax
call fcn.100109ac
add esp, 0xc
test eax, eax
jne 0x10009ae5
mov edx, dword [ebx + 0x140]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.1000de88
test eax, eax
js 0x10009adc
cmp dword [esp + 0x18], 0
je 0x10009adc
mov byte [esp + 0x17], 1
mov esi, dword [esp + 0x10]
mov byte [esp + 0xf], 1
mov ecx, esi
call fcn.1000dac9
cmp byte [esp + 0xf], 0
je 0x10009a1f
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x28], edi
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1c41215c]
call esi
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.100095ca
mov ecx, dword [edi + 4]
xor esi, esi
mov eax, ecx
mov dword [esp + 0x28], ecx
and eax, 6
mov dword [esp + 0x3c], ecx
mov byte [esp + 0xf], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], eax
je 0x10009b6b
mov edx, dword [edi + 8]
cmp dword [esp + 0x40], edx
jne 0x10009b4e
mov eax, dword [esp + 0x44]
cmp eax, dword [edi + 0xc]
je 0x10009b6b
mov esi, dword [ebx + 0x148]
mov eax, dword [edi + 0xc]
and esi, 2
mov byte [esp + 0x20], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], esi
mov eax, ecx
and eax, 0x1000
mov dword [esp + 0x30], eax
je 0x10009bbf
lea edx, [edi + 0x48]
lea ecx, [esp + 0x80]
call fcn.1000e008
test al, al
jne 0x10009ba4
mov byte [esp + 0x20], al
mov byte [esp + 0xf], al
mov eax, dword [ebx + 0x148]
and eax, 0x1000
or esi, eax
mov dword [esp + 0x10], esi
lea esi, [edi + 0x48]
push 8
pop ecx
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
cmp byte [esp + 0x20], 0
je 0x10009bd1
xor edi, edi
mov dword [esp + 0x10], edi
jmp 0x10009c71
cmp dword [esp + 0x10], 0
mov al, byte [ebp + 0x10]
je 0x10009be9
test al, al
je 0x10009be9
mov edi, 0x8004022a
jmp 0x10009cec
xor ecx, ecx
cmp dword [ebx + 0x78], ecx
je 0x10009bfa
mov edi, 0x80040401
jmp 0x10009cec
test al, al
jne 0x10009c55
cmp byte [ebp + 0x14], cl
jne 0x10009c55
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push ecx
push eax
push ecx
push ecx
mov ecx, edi
call fcn.1000dc8f
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
js 0x10009c6f
cmp dword [ebx + 0x94], 0
je 0x10009c44
push dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x1c]
push dword [esp + 0x2c]
call fcn.1000971d
mov edi, eax
mov dword [esp + 0x10], eax
jmp 0x10009c4a
xor edi, edi
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x1c]
call fcn.1000dac9
jmp 0x10009c6d
cmp dword [ebx + 0x94], ecx
jne 0x10009c67
cmp byte [esp + 0xf], cl
je 0x10009bdf
mov edi, ecx
mov dword [esp + 0x10], edi
test edi, edi
jne 0x10009cec
cmp byte [ebp + 0x14], 0
jne 0x10009cec
cmp dword [esp + 0x30], 0
mov dl, byte [ebp + 0x10]
je 0x10009cab
test dl, dl
je 0x10009c91
test dword [ebx + 0x148], 0x1000
jne 0x10009cab
lea eax, [ebx + 0x154]
push 8
pop ecx
lea esi, [esp + 0x80]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax], 0x20
test dl, dl
jne 0x10009cbe
mov eax, dword [esp + 0x28]
and eax, 0x1007
mov dword [ebx + 0x148], eax
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 0x144]
call fcn.100047a7
cmp dword [esp + 0x2c], 0
mov edi, dword [esp + 0x10]
je 0x10009cec
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x14c], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x150], eax
cmp byte [esp + 0x17], 0
je 0x10009d0c
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1c41215c]
call esi
and dword [esp + 0x18], 0
push dword [esp + 0x34]
call dword [0x1c4120cc]
mov eax, edi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10010390
mov esp, ebp
pop ebp
ret 0x10