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

Disassembly:
push 0xffffffffffffffff
push 0x10075438
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100934c0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x18], esi
sub esp, 0xc
mov dword [esp + 0x60], 1
mov ebp, esp
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x24], esp
cmp eax, esi
je 0x100415d8
mov eax, dword [eax]
push eax
mov ecx, ebp
call fcn.1001c2c0
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x40]
push edx
push edi
mov dword [ebp + 8], ecx
call fcn.10042810
sub esp, 0xc
mov byte [esp + 0x60], 2
mov ebp, esp
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov eax, dword [esp + 0x78]
mov dword [esp + 0x24], esp
cmp eax, esi
je 0x10041610
mov eax, dword [eax]
push eax
mov ecx, ebp
call fcn.1001c2c0
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x34]
push edx
push edi
mov dword [ebp + 8], ecx
call fcn.10042810
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x58], 3
call fcn.100407a0
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x3c]
sub eax, ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.100048e0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
sub eax, ecx
lea ecx, [esp + 0x40]
push ecx
push edi
mov dword [esp + 0x1c], eax
call fcn.10041030
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 8]
sub eax, ecx
cmp dword [esp + 0x18], eax
lea ecx, [esp + 0x40]
setb bl
call fcn.100048e0
sub esp, 0xc
mov ebp, esp
mov dword [ebp], esi
mov dword [ebp + 4], esi
test bl, bl
je 0x1004173c
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], esp
cmp eax, esi
je 0x100416a5
mov edx, dword [eax]
push edx
mov ecx, ebp
call fcn.1001c2c0
mov eax, dword [esp + 0x3c]
mov dword [ebp + 8], eax
sub esp, 0xc
mov byte [esp + 0x6c], 4
mov ebp, esp
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], esp
cmp eax, esi
je 0x100416d2
mov ecx, dword [eax]
push ecx
mov ecx, ebp
call fcn.1001c2c0
mov edx, dword [esp + 0x54]
mov dword [ebp + 8], edx
sub esp, 0xc
mov byte [esp + 0x78], 5
mov eax, esp
mov dword [esp + 0x48], esp
push eax
call fcn.100407a0
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x7c], 3
call fcn.100429e0
add esp, 0x28
lea ecx, [esp + 0x40]
call fcn.100048e0
mov edx, dword [esp + 0x14]
cmp edx, esi
jbe 0x100417d1
mov ecx, dword [edi + 0x10]
cmp ecx, esi
je 0x10041731
mov ebx, dword [edi + 8]
inc dword [edi + 0xc]
add ebx, ebx
cmp ebx, dword [edi + 0xc]
ja 0x1004172b
mov dword [edi + 0xc], esi
dec ecx
jne 0x10041731
mov dword [edi + 0xc], esi
dec edx
jne 0x10041717
mov dword [edi + 0x10], ecx
jmp 0x100417d1
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], esp
cmp eax, esi
je 0x10041752
mov edx, dword [eax]
push edx
mov ecx, ebp
call fcn.1001c2c0
mov eax, dword [esp + 0x48]
mov dword [ebp + 8], eax
sub esp, 0xc
mov ecx, esp
mov byte [esp + 0x6c], 6
mov dword [esp + 0x38], esp
push ecx
push edi
call fcn.10041030
sub esp, 0xc
mov byte [esp + 0x78], 7
mov ebp, esp
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], esp
cmp eax, esi
je 0x10041794
mov edx, dword [eax]
push edx
mov ecx, ebp
call fcn.1001c2c0
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x64]
mov dword [ebp + 8], eax
push ecx
mov byte [esp + 0x7c], 3
call fcn.10042ae0
add esp, 0x28
lea ecx, [esp + 0x40]
call fcn.100048e0
mov ecx, dword [esp + 0x14]
cmp ecx, esi
jbe 0x100417d1
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x100417cb
dec eax
jne 0x100417cb
mov dword [edi + 0xc], esi
dec ecx
jne 0x100417c1
mov dword [edi + 0x10], eax
lea edx, [esp + 0x40]
push edx
call fcn.100407a0
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x5c]
push ecx
mov edi, eax
mov byte [esp + 0x58], 8
call fcn.10041440
lea ecx, [esp + 0x40]
call fcn.100048e0
lea ecx, [esp + 0x28]
call fcn.100048e0
lea ecx, [esp + 0x34]
call fcn.100048e0
lea ecx, [esp + 0x60]
call fcn.100048e0
lea ecx, [esp + 0x6c]
call fcn.100048e0
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x1c