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

Disassembly:
sub esp, 0x40
push esi
push edi
lea eax, [esp + 0x4c]
mov edi, ecx
push eax
lea edx, [esp + 0xc]
lea ecx, [edi + 0x78]
push edx
call fcn.1003d3f0
mov esi, dword [esp + 8]
cmp esi, dword [edi + 0x7c]
je 0x10040a90
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x30], 0
mov ecx, dword [eax + 0x44]
push ebx
push ebp
mov dword [esp + 0x1c], ecx
je 0x1004095c
add eax, 0x3c
push eax
call fcn.10044ec0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx + 4]
mov ebp, dword [eax]
add esp, 4
cmp ebp, eax
je 0x1004094d
jmp 0x10040850
lea esi, [ebp + 0xc]
push esi
mov ecx, edi
call fcn.1003ecf0
mov edx, dword [eax]
mov eax, dword [edx + 0x2c]
push esi
mov ecx, edi
mov byte [eax + 0x61], 1
call fcn.1003ecf0
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x2c]
call fcn.1003b570
push esi
mov ecx, edi
call fcn.1003ecf0
mov ebx, eax
call fcn.10044dc0
mov ecx, dword [ebx]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
push esi
mov ecx, edi
call fcn.1003ecf0
mov edx, dword [eax]
push esi
mov ecx, edi
mov dword [edx], 8
call fcn.1003ecf0
mov ebx, dword [eax]
push esi
lea ecx, [edi + 0x78]
call fcn.1003ecf0
mov dword [eax], ebx
push esi
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.1003bfe0
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push ebx
mov dword [esp + 0x24], 0
call fcn.1003c560
add esp, 0x10
push esi
push ebx
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.1003d580
cmp byte [ebp + 0x11], 0
jne 0x10040938
mov eax, dword [ebp + 8]
cmp byte [eax + 0x11], 0
jne 0x1004091d
mov ebp, eax
mov eax, dword [ebp]
cmp byte [eax + 0x11], 0
jne 0x10040938
jmp 0x10040910
mov ebp, eax
mov eax, dword [ebp]
cmp byte [eax + 0x11], 0
je 0x10040910
jmp 0x10040938
mov eax, dword [ebp + 4]
cmp byte [eax + 0x11], 0
jne 0x10040936
cmp ebp, dword [eax + 8]
jne 0x10040936
mov ebp, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x10040926
mov ebp, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x30]
cmp ebp, dword [eax + 4]
jne 0x10040850
mov esi, ecx
mov ecx, dword [esi + 0x10]
add ecx, 0x3c
push ecx
call fcn.10044ed0
add esp, 4
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x24]
shl eax, 0x1e
add eax, dword [ecx + 0x28]
lea ecx, [edi + 0x1c]
cdq
mov dword [esp + 0x44], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x40], eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.1003d460
mov ebx, dword [esp + 0x18]
cmp ebx, dword [edi + 0x20]
je 0x100409c9
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x4c]
lea ecx, [ebx + 0x18]
push eax
call fcn.10036d40
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [ebx + 0x18]
call fcn.1003deb0
cmp dword [ebx + 0x20], 0
jne 0x100409c9
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + 0x1c]
call fcn.10040210
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x2c]
call fcn.1003b570
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100409eb
mov ecx, ebx
call fcn.1003f340
push ebx
call fcn.10019165
add esp, 4
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [edi + 0x78]
call fcn.1003c5d0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
lea ebx, [edi + 0x44]
push edx
mov ecx, ebx
call fcn.1003d4e0
mov esi, dword [eax]
cmp esi, dword [edi + 0x48]
je 0x10040a8e
dec dword [esi + 0x2c]
cmp dword [esi + 0x2c], 0
jne 0x10040a8e
mov ecx, dword [esi + 0x18]
call fcn.1004a0d0
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10040a3c
mov ecx, edi
call fcn.10046490
push edi
call fcn.10019165
add esp, 4
mov edi, dword [esi + 0x14]
test edi, edi
je 0x10040a53
mov ecx, edi
call fcn.10048110
push edi
call fcn.10019165
add esp, 4
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x10040a6a
mov ecx, edi
call fcn.10044d80
push edi
call fcn.10019165
add esp, 4
mov edi, dword [esi + 0x18]
test edi, edi
je 0x10040a81
mov ecx, edi
call fcn.10033b50
push edi
call fcn.10019165
add esp, 4
push esi
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.1003c810
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x40
ret 4