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

Disassembly:
push 0xffffffffffffffff
push 0x49708d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dx, word [0x4a6920]
mov esi, ecx
mov ecx, dword [0x4a691c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x5c], ecx
mov word [esp + 0x60], dx
call fcn.0041b7e0
mov dword [esp + 0x28], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x74], ebx
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
mov dword [esp + 0x30], ebx
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x74], 1
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
cmp esi, ebx
mov byte [esp + 0x74], 2
je 0x41fcfa
lea eax, [esp + 0x5c]
push eax
push esi
call fcn.00462cc8
add esp, 8
cmp eax, ebx
je 0x41fcfa
jmp 0x41f9e2
xor ebx, ebx
cmp eax, ebx
jne 0x41f9ea
xor ecx, ecx
jmp 0x41f9ff
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x41f9f0
sub ecx, esi
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x24]
call fcn.00401f30
lea ebx, [esp + 0x20]
call fcn.0041aaf0
mov edi, eax
call fcn.0041ab70
mov eax, 1
lea ecx, [esp + 0x3c]
mov edx, ebx
call fcn.00403230
mov byte [esp + 0x74], 3
or dword [esp + 0x1c], 1
mov eax, dword [eax]
mov ecx, str.___
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41fa66
test dx, dx
je 0x41fa62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41fa66
add eax, 4
add ecx, 4
test dx, dx
jne 0x41fa40
xor eax, eax
jmp 0x41fa6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x41facb
lea ecx, [esp + 0x20]
push ecx
mov eax, 1
lea ecx, [esp + 0x3c]
call fcn.00416af0
or dword [esp + 0x1c], 2
mov eax, dword [eax]
mov ecx, 0x4a6928
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41fab9
test dx, dx
je 0x41fab5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41fab9
add eax, 4
add ecx, 4
test dx, dx
jne 0x41fa93
xor eax, eax
jmp 0x41fabe
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x41facb
mov bl, 1
jmp 0x41facd
xor bl, bl
test byte [esp + 0x1c], 2
je 0x41faf9
mov eax, dword [esp + 0x38]
and dword [esp + 0x1c], 0xfffffffd
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41faf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x74], 2
test byte [esp + 0x1c], 1
je 0x41fb2d
mov eax, dword [esp + 0x3c]
and dword [esp + 0x1c], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fb2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41fc2c
cmp dword [esp + 0x30], 0
je 0x41fbae
lea edi, [esp + 0x18]
call fcn.00401c30
lea ecx, [esp + 0x24]
push ecx
mov edx, edi
push edx
lea eax, [esp + 0x48]
push eax
call fcn.0041bd50
mov ebx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
push ecx
add ebx, 8
mov byte [esp + 0x7c], 4
call fcn.0041a140
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x78], 2
call fcn.00419530
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x28]
call fcn.0041ba00
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov ecx, dword [esp + 0x20]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x41fbfe
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41fbf1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41fbf1
call fcn.00401ec0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41fbe8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x41fbfe
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00401f30
lea ecx, [esp + 0x18]
push ecx
xor eax, eax
call fcn.00420680
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
lea ecx, [esp + 0x18]
add eax, 0xffffffff
push ecx
call fcn.00420680
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x30], 1
jmp 0x41fc3f
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
call fcn.0041fdb0
lea eax, [esp + 0x5c]
push eax
push 0
call fcn.00462cc8
add esp, 8
test eax, eax
jne 0x41f9e0
cmp dword [esp + 0x30], eax
je 0x41fcf8
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, esi
or eax, ecx
jge 0x41fc83
mov ecx, esi
lea eax, [esp + 0x18]
call fcn.00402080
mov ebp, dword [esp + 0x18]
lea ecx, [esi + 1]
push ecx
push ebp
call fcn.0045f332
add esp, 8
test esi, esi
jl 0x41fd9f
cmp esi, dword [ebp - 8]
jg 0x41fd9f
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x10]
mov word [ebp + esi*2], 0
call fcn.00401ec0
add eax, 0x10
mov dword [esp + 0x40], eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x7c], 5
call fcn.0041a5c0
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x54]
push edx
add ebx, 8
mov byte [esp + 0x7c], 6
call fcn.0041a140
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x78], 2
call fcn.00419530
xor ebx, ebx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x28]
call fcn.0041ba00
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x74], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fd44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fd68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x24]
mov dword [esp + 0x74], 0xffffffff
call fcn.0041b350
mov eax, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0045eec1
add esp, 0x64
ret 4
push 0x80070057
call fcn.00402340
int3