Function at 0x41fee0
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 0x4c7b59
mov eax, dword fs:[0]
push eax
sub esp, 0x100
push ebx
push esi
push edi
mov eax, dword [0x522d80]
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 0x41fffa
cmp esi, 0xfffffb2e
je 0x41fffa
mov eax, dword [ecx + 0x11c]
sub eax, dword [ecx + 0x118]
sar eax, 2
cmp esi, eax
jb 0x41ffbf
call fcn.00497123
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.004122b0
mov edi, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
inc edi
call fcn.004122b0
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 0x42003e
cmp eax, 1
jne 0x420048
mov dword [ecx + 0xb64], 1
cmp esi, edx
je 0x4201e0
cmp esi, 0xfffffb2e
je 0x4201e0
cmp dword [ecx + 0x104], ebx
mov dword [esp + 0x18], ebx
jle 0x4201e0
lea esp, [esp]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x108]
push eax
add ecx, 0xbc
call fcn.0041afb0
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 0x4200b5
cmp edi, eax
je 0x4200ba
call fcn.00497123
cmp esi, dword [esp + 0xc0]
je 0x4201be
cmp edi, ebx
jne 0x420161
call fcn.00497123
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x4200e0
call fcn.00497123
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 0x42019c
lea ecx, [esp + 0x20]
call fcn.00419ab0
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 0x420170
jmp 0x420150
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0xc]
jge 0x420168
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
jmp 0x42016b
mov eax, dword [edi]
jmp 0x4200d6
mov eax, dword [eax + 8]
cmp byte [eax + 0x41], bl
je 0x420150
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
add eax, 0xbc
mov eax, dword [eax]
cmp edi, ebx
je 0x420187
cmp edi, eax
je 0x42018c
call fcn.00497123
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x1c]
jne 0x4200c7
jmp 0x4201be
cmp ecx, dword [ebp + 0x18]
je 0x420341
mov ecx, dword [esp + 0x14]
push esi
push edi
lea edx, [esp + 0x100]
push edx
add ecx, 0xbc
call fcn.0041c560
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, dword [ecx + 0x104]
mov dword [esp + 0x18], eax
jl 0x420070
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.0041d900
mov eax, dword [esp + 0xb0]
cmp eax, ebx
je 0x4202ef
push eax
call fcn.00498be9
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 0x42039d
call fcn.00497123
xor edi, edi
cmp esi, dword [edi + 0x18]
jne 0x420356
call fcn.00497123
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 0x10]
call fcn.004190a0
mov esi, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00419d20
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x420383
push eax
call fcn.00498be9
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 0x42034c