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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eff0d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1012b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov ecx, dword [edi]
or dword [ebx + 8], 1
mov eax, dword [ebx + 4]
and eax, 0xfffffffe
test byte [ebx + 4], 1
je 0x10040932
mov eax, dword [eax + 4]
mov edx, dword [ebx + 0x90]
cmp edx, 0x101395b8
jne 0x1004094f
push ecx
push eax
lea ecx, [ebx + 0x90]
call fcn.10041f80
jmp 0x10040968
cmp edx, ecx
je 0x10040968
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x1004095d
mov eax, dword [ecx]
push dword [ecx + 0x10]
mov ecx, edx
push eax
call fcn.1000eee0
xor esi, esi
cmp dword [edi + 0x34], esi
jle 0x10040998
lea eax, [ebx + 0x10]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov ecx, eax
call fcn.10039080
mov ecx, dword [edi + 0x14]
push eax
add ecx, ebx
call fcn.10041170
mov eax, dword [ebp - 0x18]
inc esi
add ebx, 0x58
cmp esi, dword [edi + 0x34]
jl 0x10040977
mov ebx, dword [ebp + 8]
cmp dword [edi + 0x38], 0
mov dword [ebp - 0x14], 0
jle 0x10040aeb
lea esi, [ebx + 0x60]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], esi
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x100409da
mov edx, dword [esi + 4]
mov eax, dword [ecx]
cmp edx, eax
jge 0x100409d5
mov ebx, dword [ecx + edx*4 + 4]
lea eax, [edx + 1]
mov dword [esi + 4], eax
jmp 0x10040a59
cmp eax, dword [esi + 8]
jne 0x100409eb
mov eax, dword [esi + 8]
mov ecx, esi
inc eax
push eax
call fcn.1007bcc0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov ebx, dword [esi]
test ebx, ebx
jne 0x10040a25
push 0x18
call fcn.1001f2a8
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x10040a1a
mov ecx, eax
call fcn.10080310
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x10040a4c
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x10040a4c
cmp dword [ebx + 0x40], 0
je 0x10040a39
push 0x18
push 0x1012d580
mov ecx, ebx
call fcn.1002a630
push 0x18
mov ecx, ebx
call fcn.1002a3a0
push ebx
mov ecx, eax
call fcn.10080260
mov ebx, eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov dword [eax + ecx*4 + 4], ebx
inc dword [esi + 4]
mov esi, dword [edi + 0x18]
add esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
mov ecx, dword [esi]
or dword [ebx + 8], 1
mov eax, dword [ebx + 4]
and eax, 0xfffffffe
test byte [ebx + 4], 1
je 0x10040a77
mov eax, dword [eax + 4]
mov edx, dword [ebx + 0x10]
cmp edx, 0x101395b8
jne 0x10040a8e
push ecx
push eax
lea ecx, [ebx + 0x10]
call fcn.10041f80
jmp 0x10040aa7
cmp edx, ecx
je 0x10040aa7
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x10040a9c
mov eax, dword [ecx]
push dword [ecx + 0x10]
mov ecx, edx
push eax
call fcn.1000eee0
mov esi, dword [esi + 0x18]
call fcn.10093550
cmp esi, eax
je 0x10040ad4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x18]
or dword [ebx + 8], 2
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x10040ace
mov ecx, ebx
call fcn.10093190
mov ecx, dword [ebx + 0x14]
push esi
call fcn.10085380
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], 0x1c
inc eax
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0x38]
jl 0x100409b6
xor esi, esi
cmp dword [edi + 0x3c], esi
jle 0x10040b1e
mov eax, dword [ebp + 8]
add eax, 0x20
xor ebx, ebx
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov ecx, eax
call fcn.10038ec0
mov ecx, dword [edi + 0x1c]
push eax
add ecx, ebx
call fcn.100408f0
mov eax, dword [ebp - 0x1c]
inc esi
add ebx, 0x58
cmp esi, dword [edi + 0x3c]
jl 0x10040b00
xor esi, esi
cmp dword [edi + 0x40], esi
jle 0x10040b4e
mov eax, dword [ebp + 8]
add eax, 0x30
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov ecx, eax
call fcn.10038fa0
mov ecx, dword [edi + 0x20]
push eax
add ecx, ebx
call fcn.10040e20
mov eax, dword [ebp - 0x1c]
inc esi
add ebx, 0x30
cmp esi, dword [edi + 0x40]
jl 0x10040b30
cmp dword [edi + 0x44], 0
mov dword [ebp - 0x18], 0
jle 0x10040c73
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x10040b8b
mov edx, dword [ebx + 0x44]
mov eax, dword [ecx]
cmp edx, eax
jge 0x10040b86
mov esi, dword [ecx + edx*4 + 4]
lea eax, [edx + 1]
mov dword [ebx + 0x44], eax
jmp 0x10040c10
cmp eax, dword [ebx + 0x48]
jne 0x10040b9d
mov eax, dword [ebx + 0x48]
lea ecx, [ebx + 0x40]
inc eax
push eax
call fcn.1007bcc0
mov ecx, dword [ebx + 0x4c]
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov esi, dword [ebx + 0x40]
test esi, esi
jne 0x10040bdc
push 0x1c
call fcn.1001f2a8
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x10040bd1
mov ecx, eax
call fcn.1007ef10
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x10040c03
xor esi, esi
mov dword [ebp - 4], 0xffffffff
jmp 0x10040c03
cmp dword [esi + 0x40], 0
je 0x10040bf0
push 0x20
push 0x1012d5b4
mov ecx, esi
call fcn.1002a630
push 0x20
mov ecx, esi
call fcn.1002a3a0
push esi
mov ecx, eax
call fcn.1007ee60
mov esi, eax
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x4c]
mov dword [eax + ecx*4 + 4], esi
inc dword [ebx + 0x44]
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax]
or dword [esi + 8], 2
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x24]
mov eax, dword [eax + ecx + 4]
or dword [esi + 8], 4
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x24]
mov eax, dword [eax + ecx + 8]
mov dword [ebp - 0x14], eax
call fcn.100932d0
cmp dword [ebp - 0x14], eax
je 0x10040c5f
or dword [esi + 8], 1
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x10040c57
mov ecx, esi
call fcn.100930c0
mov ecx, dword [esi + 0x10]
push dword [ebp - 0x14]
call fcn.10085380
mov edx, dword [ebp - 0x18]
add dword [ebp - 0x10], 0xc
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [edi + 0x44]
jl 0x10040b67
xor esi, esi
cmp dword [edi + 0x48], esi
jle 0x10040ca3
mov eax, dword [ebp + 8]
add eax, 0x50
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov ecx, eax
call fcn.10039080
mov ecx, dword [edi + 0x28]
push eax
add ecx, ebx
call fcn.10041170
mov eax, dword [ebp - 0x1c]
inc esi
add ebx, 0x58
cmp esi, dword [edi + 0x48]
jl 0x10040c85
cmp dword [edi + 0x4c], 0
mov dword [ebp - 0x18], 0
jle 0x10040d8b
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x10040cdb
mov edx, dword [esi + 0x74]
mov eax, dword [ecx]
cmp edx, eax
jge 0x10040cd6
mov ebx, dword [ecx + edx*4 + 4]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
jmp 0x10040d60
cmp eax, dword [esi + 0x78]
jne 0x10040ced
mov eax, dword [esi + 0x78]
lea ecx, [esi + 0x70]
inc eax
push eax
call fcn.1007bcc0
mov ecx, dword [esi + 0x7c]
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov ebx, dword [esi + 0x70]
test ebx, ebx
jne 0x10040d2c
push 0x18
call fcn.1001f2a8
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x10040d21
mov ecx, eax
call fcn.1007f060
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x10040d53
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x10040d53
cmp dword [ebx + 0x40], 0
je 0x10040d40
push 0x18
push 0x1012d544
mov ecx, ebx
call fcn.1002a630
push 0x18
mov ecx, ebx
call fcn.1002a3a0
push ebx
mov ecx, eax
call fcn.1007efb0
mov ebx, eax
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x7c]
mov dword [ecx + edx*4 + 4], ebx
inc dword [esi + 0x74]
mov eax, dword [edi + 0x2c]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*8]
or dword [ebx + 8], 1
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + edx*8 + 4]
inc edx
or dword [ebx + 8], 2
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x18], edx
cmp edx, dword [edi + 0x4c]
jl 0x10040cb7
xor ebx, ebx
cmp dword [edi + 0x50], ebx
jle 0x10040dcd
mov ecx, dword [ebp + 8]
sub ecx, 0xffffff80
mov dword [ebp - 0x1c], ecx
nop dword [eax + eax]
mov eax, dword [edi + 0x30]
mov esi, dword [eax + ebx*4]
call fcn.10038e20
cmp eax, esi
je 0x10040dc4
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x10040db9
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.1000eee0
mov ecx, dword [ebp - 0x1c]
inc ebx
cmp ebx, dword [edi + 0x50]
jl 0x10040da0
mov esi, dword [edi + 0x10]
call fcn.10093450
cmp esi, eax
je 0x10040e00
mov ebx, dword [ebp + 8]
mov esi, dword [edi + 0x10]
or dword [ebx + 8], 2
mov ecx, dword [ebx + 0x94]
test ecx, ecx
jne 0x10040dfa
mov ecx, ebx
call fcn.10093090
mov ecx, dword [ebx + 0x94]
push esi
call fcn.10085660
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4