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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edi, ecx
cmp dword [ebx], esi
jne 0x41b798
push 4
pop eax
jmp 0x41ba96
push 0x4c
push esi
lea eax, [esp + 0x20]
push eax
call fcn.0041869b
mov ecx, dword [ebp + 8]
lea eax, [edi + edx]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx]
mov ebx, esi
add eax, ecx
mov dword [esp + 0x1c], 0xd00
mov dword [esp + 0x50], eax
mov eax, 0x800000
mov dword [esp + 0x18], 0x1001
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x78], eax
cmp edx, eax
jae 0x41b7f4
mov eax, 0x100
cmp edx, eax
cmova eax, edx
mov dword [esp + 0x78], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], esi
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x98], eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
call fcn.0041af91
mov esi, eax
test esi, esi
jne 0x41ba8b
mov eax, dword [esp + 0x54]
mov dword [esp + 0x7c], 0x1000
mov dword [esp + 0x80], 0x800
test eax, eax
je 0x41b847
push dword [eax + 4]
push 0xffffffffffffffff
push esi
push esi
call dword [eax]
push 0
push 0
lea edx, [esp + 0x80]
mov dword [esp + 0x34], 1
lea ecx, [esp + 0x20]
call fcn.0041b4e6
xor esi, esi
cmp dword [esp + 0x20], ebx
jbe 0x41b9da
mov eax, dword [esp + 0x4c]
sub eax, dword [ebp + 8]
test ebx, ebx
mov edx, dword [esp + 0x24]
cmove edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
mov eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x74], ecx
cmp edx, 2
jb 0x41b9b0
jne 0x41b8a8
cmp ecx, dword [esp + 0x1c]
ja 0x41b9b0
and dword [esp + 0xc], esi
cmp edx, 0x800
jae 0x41b96f
cmp ecx, dword [esp + 0x2c]
je 0x41b96f
push ecx
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.0041b588
mov edx, eax
mov eax, dword [esp + 0x24]
push 2
dec eax
mov dword [esp + 0x70], edx
pop ecx
mov dword [esp + 0x70], eax
cmp eax, ecx
jbe 0x41b8ea
mov dword [esp + 0x70], ecx
jmp 0x41b8f2
mov dword [esp + 0x6c], edx
test eax, eax
je 0x41b96f
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], eax
jbe 0x41b96f
push 0
push 1
lea edx, [esp + 0x80]
mov dword [esp + 0x84], 0x1000
lea ecx, [esp + 0x20]
call fcn.0041b4e6
inc dword [esp + 0xc]
add dword [esp + 0x14], 9
mov eax, dword [esp + 0x24]
cmp eax, 2
jb 0x41b965
push dword [esp + 0x28]
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.0041b588
mov edx, eax
test edx, edx
js 0x41b965
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x10]
add ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
imul ecx, ecx, 5
add eax, edx
add ecx, dword [esp + 0x6c]
cmp ecx, eax
jg 0x41b9aa
mov eax, dword [esp + 0x70]
cmp dword [esp + 0xc], eax
jb 0x41b8f8
push ebx
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.0041b642
test al, al
je 0x41ba88
push dword [esp + 0x74]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
xor ebx, ebx
call fcn.0041b6d0
test al, al
je 0x41ba88
mov eax, dword [esp + 0xc]
inc eax
push eax
push dword [esp + 0x14]
jmp 0x41b9b5
add ebx, dword [esp + 0xc]
jmp 0x41b9d0
push 0
inc ebx
push 1
lea edx, [esp + 0x80]
mov dword [esp + 0x84], 0x1000
lea ecx, [esp + 0x20]
call fcn.0041b4e6
cmp dword [esp + 0x20], esi
ja 0x41b86f
push ebx
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.0041b642
test al, al
je 0x41ba88
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.0041b5e5
mov edx, 0x1000000
lea ecx, [esp + 0x18]
call fcn.0041b67c
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x50]
jae 0x41ba88
mov byte [eax], 0xff
mov eax, dword [esp + 0x4c]
inc eax
cmp dword [esp + 0x44], 0
mov dword [esp + 0x4c], eax
jbe 0x41ba61
jmp 0x41ba31
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.0041b5e5
cmp dword [esp + 0x44], 0x20
jne 0x41ba26
mov ecx, dword [esp + 0x40]
mov eax, ecx
mov edx, dword [esp + 0x48]
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
mov byte [edx], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
mov byte [edx + 3], cl
and dword [esp + 0x44], 0
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
and dword [esp + 0x48], 0
mov dword [esp + 0x5c], eax
mov dword [ecx], eax
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x41ba8b
push dword [ecx + 4]
push 4
push eax
push dword [esp + 0x64]
call dword [ecx]
jmp 0x41ba8b
push 4
pop esi
lea ecx, [esp + 0x78]
call fcn.0041b196
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10