Function at 0x401960
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x416904
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x41c270]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c270]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x2a8], eax
push 0x24c
push eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x58]
push eax
call fcn.004069c0
add esp, 0xc
lea ecx, [esp + 0x2b0]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, 0x419328
call fcn.00402d90
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [0x4170c4]
mov esi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x28], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401a09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x401cc1
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
jmp 0x401a22
xor ebp, ebp
lea ecx, [esp + 0x78]
push 0x419574
push ecx
xor edi, edi
xor esi, esi
mov dword [esp + 0x44], ebp
call fcn.00405cb6
add esp, 8
test eax, eax
je 0x401c6a
lea edx, [esp + 0x78]
push 0x419578
push edx
call fcn.00405cb6
add esp, 8
test eax, eax
je 0x401c6a
test byte [esp + 0x4c], 0x10
je 0x401aec
mov eax, dword [esp + 0x2b4]
push eax
lea ecx, [esp + 0x2b4]
push ecx
lea edx, [esp + 0x38]
push edx
mov ebx, 0x4194e4
call fcn.00402d90
add esp, 4
mov byte [esp + 0x2b0], 1
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push ecx
lea ebx, [esp + 0x88]
call fcn.00402d90
add esp, 8
call fcn.00401960
mov edi, eax
mov byte [esp + 0x2b0], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov esi, edx
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401ade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x14], edi
mov eax, dword [esp + 0x3c]
adc dword [esp + 0x18], esi
jmp 0x401af8
mov eax, dword [esp + 0x6c]
add dword [esp + 0x14], eax
adc dword [esp + 0x18], ebp
cmp dword [esp + 0x2b4], 1
jne 0x401c6a
test esi, esi
jg 0x401b29
jl 0x401b14
cmp edi, 0x3c00000
jae 0x401b29
test ebp, ebp
jl 0x401c6a
jg 0x401b29
cmp eax, 0x1400000
jbe 0x401c6a
lea eax, [esp + 0x78]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b30
sub eax, edx
sar eax, 1
mov esi, eax
lea ecx, [esp + esi*2 + 0x6e]
push 0x419330
push ecx
call fcn.00405cb6
add esp, 8
test eax, eax
je 0x401c6a
lea edx, [esp + esi*2 + 0x70]
push 0x41933c
push edx
call fcn.00405cb6
add esp, 8
test eax, eax
je 0x401c6a
mov eax, dword [esp + 0x2b0]
mov esi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.004058db
add esp, 8
test eax, eax
jne 0x401b93
or eax, 0xffffffff
jmp 0x401b9c
sub eax, dword [esp + 0x2b0]
sar eax, 1
lea ecx, [esp + 0x2b0]
sub esi, eax
push ecx
mov eax, esi
lea ecx, [esp + 0x38]
call fcn.00402300
push ecx
mov byte [esp + 0x2ac], 2
mov edx, esp
mov dword [esp + 0x28], esp
push eax
push edx
lea ebx, [esp + 0x84]
call fcn.00402d90
add esp, 4
mov byte [esp + 0x2b0], 3
mov eax, esp
mov dword [esp + 0x40], esp
push eax
mov ecx, 0x4192c8
call fcn.00402b50
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, 0x4192e0
mov byte [esp + 0x2b8], 4
call fcn.00402b50
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x2b8], 2
call fcn.00401e40
mov byte [esp + 0x2b8], 0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
call fcn.00401d20
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 0x401c6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [0x4170c0]
test eax, eax
jne 0x401a20
push esi
call dword [0x4170bc]
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x2b0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401cb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x401cf3
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x2b0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.004053e1
add esp, 0x298
ret