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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x6c]
xorps xmm0, xmm0
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
push ebp
mov ebp, dword [esp + 0x78]
push esi
cmp dword [eax], 0
mov esi, ecx
push edi
mov dword [esp + 0x20], ebp
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
jne 0x10040b72
cmp dword [eax + 4], 0
jne 0x10040b72
lea edx, [esp + 0x44]
jmp 0x10040b74
xor edx, edx
mov eax, dword [esp + 0x60]
mov dword [esp + 0x34], 4
mov dword [esp + 0x2c], 0
mov dword [eax], 0x184d2204
mov ecx, dword [esp + 0x70]
cmp dword [ecx + 0x34], 2
jg 0x10040bae
mov eax, dword [esp + 0x74]
mov dword [ecx + 0x58], eax
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x5c], eax
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x38]
push eax
call fcn.100ce730
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffea
jbe 0x10040bff
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x828]
mov dword [esi + 0x74c], 0xa0000003
test edx, edx
je 0x10040e23
lea eax, [esi + 0x754]
push eax
push 0
push edi
push 0xa0000003
jmp 0x10040e1d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test ebx, ebx
je 0x10040d8d
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
nop dword [eax + eax]
mov ecx, dword [esp + 0x24]
xor edi, edi
cmp ebx, dword [esp + 0x64]
xorps xmm0, xmm0
mov dword [esp + 0x30], edx
lea edx, [esp + 0x38]
cmova ebx, dword [esp + 0x64]
mov eax, dword [ecx]
push edx
push edi
push ebx
push dword [esp + 0x6c]
movlpd qword [esp + 0x48], xmm0
call dword [eax + 0x1c]
test eax, eax
je 0x10040df4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10040df4
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
cmp edi, eax
jb 0x10040c78
cmp ecx, edx
jne 0x10040d7d
mov ecx, dword [esp + 0x70]
sub eax, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
cmp dword [ecx + 0x34], 2
jg 0x10040ca2
mov eax, dword [esp + 0x74]
mov dword [ecx + 0x58], eax
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x5c], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x34]
push 0
push eax
mov eax, dword [esp + 0x68]
add eax, edi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.100ce730
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffea
ja 0x10040dcc
add edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x10040d70
mov eax, dword [ebp]
push 0
push ecx
push dword [esp + 0x70]
mov ecx, ebp
call dword [eax + 0x18]
test eax, eax
je 0x10040da4
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x34]
adc dword [esp + 0x14], 0
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [esi + 0x34]
mov ebp, eax
sub ebp, dword [esi + 0x818]
sbb edx, dword [esi + 0x81c]
mov eax, dword [ecx]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x24]
call eax
mov dword [esi + 0x818], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x81c], edx
test eax, eax
jl 0x10040d56
jg 0x10040d44
test ebp, ebp
jb 0x10040d56
push dword [esp + 0x20]
lea ecx, [esi + 4]
push 0
push 0
push eax
push ebp
call fcn.10057270
mov eax, dword [esi + 0x754]
or eax, dword [esi + 0x750]
jne 0x10040e36
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
test ebx, ebx
je 0x10040d85
mov eax, dword [esp + 0x18]
jmp 0x10040c68
test ebx, ebx
jne 0x10040c20
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov edx, ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10151433
add esp, 0x4c
ret 0x28
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x828]
mov dword [esi + 0x74c], 0xa0000030
test edx, edx
je 0x10040e23
lea eax, [esi + 0x754]
push eax
push 0
push edi
push 0xa0000030
jmp 0x10040e1d
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x828]
mov dword [esi + 0x74c], 0xa0000035
test edx, edx
je 0x10040e23
lea eax, [esi + 0x754]
push eax
push 0
push edi
push 0xa0000035
jmp 0x10040e1d
test ebx, ebx
je 0x10040d85
mov edx, dword [esi + 8]
mov dword [esi + 0x74c], 0xa0000015
test edx, edx
je 0x10040e23
lea eax, [esi + 0x754]
push eax
push 0
push dword [esi + 0x828]
push 0xa0000015
mov ecx, dword [edx]
push edx
call dword [ecx + 0x14]
cmp byte [esi + 0x734], 0
je 0x10040e36
mov dword [esi + 0x748], 1
mov ecx, dword [esp + 0x54]
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
or edx, 0xffffffff
call fcn.10151433
add esp, 0x4c
ret 0x28