Function at 0x41e650
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c67d9
mov eax, dword fs:[0]
push eax
sub esp, 0x100
push ebx
push esi
push edi
mov eax, dword [0x521da0]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
xor ebx, ebx
or edx, 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov esi, dword [ebp + 0x1c]
mov byte [esp + 0x118], 1
cmp esi, edx
je 0x41e76a
cmp esi, 0xfffffb2e
je 0x41e76a
mov eax, dword [ecx + 0x11c]
sub eax, dword [ecx + 0x118]
sar eax, 2
cmp esi, eax
jb 0x41e72f
call fcn.00496353
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x118]
mov eax, dword [ecx + esi*4]
mov edx, dword [ebp + 0x10]
lea ecx, [eax + 0x1c]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
call fcn.00412930
mov edi, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
inc edi
call fcn.00412930
mov ecx, dword [esp + 0x14]
mov dword [eax], edi
or edx, 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x30], edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], eax
cmp eax, ebx
je 0x41e7ae
cmp eax, 1
jne 0x41e7b8
mov dword [ecx + 0xb64], 1
cmp esi, edx
je 0x41e950
cmp esi, 0xfffffb2e
je 0x41e950
cmp dword [ecx + 0x104], ebx
mov dword [esp + 0x18], ebx
jle 0x41e950
lea esp, [esp]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x108]
push eax
add ecx, 0xbc
call fcn.00419600
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xd4]
add eax, 0xbc
mov eax, dword [eax]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0xc0], ecx
cmp edi, ebx
je 0x41e825
cmp edi, eax
je 0x41e82a
call fcn.00496353
cmp esi, dword [esp + 0xc0]
je 0x41e92e
cmp edi, ebx
jne 0x41e8d1
call fcn.00496353
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x41e850
call fcn.00496353
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x28]
mov dword [esp + 0x70], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x74], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], edx
cmp eax, dword [ebp + 0x1c]
je 0x41e90c
lea ecx, [esp + 0x20]
call fcn.004180c0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xd4]
add eax, 0xbc
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
cmp byte [eax + 0x41], bl
jne 0x41e8e0
jmp 0x41e8c0
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0xc]
jge 0x41e8d8
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
jmp 0x41e8db
mov eax, dword [edi]
jmp 0x41e846
mov eax, dword [eax + 8]
cmp byte [eax + 0x41], bl
je 0x41e8c0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
add eax, 0xbc
mov eax, dword [eax]
cmp edi, ebx
je 0x41e8f7
cmp edi, eax
je 0x41e8fc
call fcn.00496353
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x1c]
jne 0x41e837
jmp 0x41e92e
cmp ecx, dword [ebp + 0x18]
je 0x41eab1
mov ecx, dword [esp + 0x14]
push esi
push edi
lea edx, [esp + 0x100]
push edx
add ecx, 0xbc
call fcn.0041ac70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, dword [ecx + 0x104]
mov dword [esp + 0x18], eax
jl 0x41e7e0
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x24]
mov edx, dword [esp + 0x30]
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xd4], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xcc], edx
mov edx, dword [ebp + 0x20]
mov dword [esp + 0xe0], edx
mov edx, dword [ebp + 0x28]
mov dword [esp + 0xc4], edi
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xc8], esi
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x98], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x90], edx
mov edx, dword [ebp + 0x20]
mov dword [esp + 0xa4], edx
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x88], edi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x8c], esi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
lea eax, [esp + 0x88]
push eax
lea edx, [esp + 0xfc]
push edx
add ecx, 0xbc
mov byte [esp + 0x120], 3
call fcn.0041be10
mov eax, dword [esp + 0xb0]
cmp eax, ebx
je 0x41ea5f
push eax
call fcn.00497e19
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x28]
mov dword [eax + 0x18], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + 0x10], ebx
mov dword [eax], esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], edx
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp edi, ebx
jne 0x41eb0d
call fcn.00496353
xor edi, edi
cmp esi, dword [edi + 0x18]
jne 0x41eac6
call fcn.00496353
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 0x10]
call fcn.004176e0
mov esi, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00418350
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x41eaf3
push eax
call fcn.00497e19
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov edi, dword [edi]
jmp 0x41eabc