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

Disassembly:
push 0xffffffffffffffff
push 0x4a6d02
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4ca5d0]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ca5d0]
xor eax, esp
push eax
lea eax, [esp + 0x2ac]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2bc]
lea eax, [esp + 0x18]
xor esi, esi
push eax
mov dword [esp + 0x30], esi
call fcn.00406f00
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ebx, 0x4b225c
mov dword [esp + 0x2bc], esi
call fcn.004124e0
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [0x4aa260]
mov esi, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x24], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4117a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x4117b3
mov esi, 1
jmp 0x411d0e
mov ebp, dword [0x4aa250]
lea esp, [esp]
test byte [esp + 0x54], 0x10
je 0x4118e3
mov esi, dword [0x4aa25c]
push 0x4b2260
lea ecx, [esp + 0x84]
push ecx
call esi
test eax, eax
je 0x411cdf
push 0x4b2264
lea edx, [esp + 0x84]
push edx
call esi
test eax, eax
je 0x411cdf
xor edi, edi
mov esi, 0x4cc444
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.00484013
add esp, 8
test eax, eax
jne 0x411820
lea edi, [eax + 1]
add esi, 4
cmp esi, 0x4cc454
jl 0x411806
test edi, edi
jne 0x411cdf
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x4c]
push eax
lea ebx, [esp + 0x88]
call fcn.004124e0
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ebx, 0x4b226c
mov byte [esp + 0x2c4], 1
call fcn.004124e0
mov edx, dword [esp + 0x2d4]
mov ecx, dword [esp + 0x2d0]
push edx
mov byte [esp + 0x2c8], 2
mov eax, dword [eax]
push ecx
push eax
call fcn.00411700
mov esi, eax
mov byte [esp + 0x2d0], 1
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x1c
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4118ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b4], 0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4118d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x411cff
jmp 0x411cdf
xor edi, edi
mov esi, 0x4cc454
lea ebx, [ebx]
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x84]
push edx
call fcn.00484013
add esp, 8
test eax, eax
jne 0x41190a
lea edi, [eax + 1]
add esi, 4
cmp esi, 0x4cc45c
jl 0x4118f0
test edi, edi
jne 0x411cdf
cmp dword [esp + 0x2c0], edi
je 0x4119ee
lea eax, [esp + 0x80]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411934
sub eax, edx
sar eax, 1
cmp eax, 4
jle 0x4119ee
lea eax, [esp + eax*2 + 0x78]
push 0x4b2270
push eax
call fcn.00484013
add esp, 8
test eax, eax
jne 0x4119ee
lea esi, [esp + 0x20]
call fcn.00411e50
lea eax, [esp + 0x80]
mov byte [esp + 0x2b4], 3
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411981
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00412940
mov esi, dword [esp + 0x20]
push 0
push esi
call dword [0x4aa258]
push esi
call dword [0x4aa254]
test eax, eax
jne 0x4119ca
cmp dword [esp + 0x2c4], eax
je 0x4119ca
push 4
push eax
push esi
call ebp
lea eax, [esi - 0x10]
mov byte [esp + 0x2b4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x44]
push edx
lea ebx, [esp + 0x88]
call fcn.004124e0
mov eax, dword [eax]
add esp, 8
push 0
push eax
call dword [0x4aa258]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x54]
push edx
lea ebx, [esp + 0x88]
call fcn.004124e0
mov eax, dword [eax]
add esp, 8
push eax
call dword [0x4aa254]
mov esi, eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x411cdf
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x84]
call fcn.00406f00
lea edx, [esp + 0x28]
push edx
lea eax, [esi + 4]
lea ecx, [esp + 0x38]
mov byte [esp + 0x2b8], 4
call fcn.004123f0
mov eax, dword [eax]
mov ecx, 0x4b227c
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411ad6
test dx, dx
je 0x411ad2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411ad6
add eax, 4
add ecx, 4
test dx, dx
jne 0x411ab0
xor eax, eax
jmp 0x411adb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x34]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x411c75
mov edx, dword [0x4cea4c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4cea4c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x2b4], 5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x411b4d
mov ecx, 0x105
lea eax, [esp + 0x1c]
call fcn.00407880
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push 0
push 0x4b2288
push ecx
call dword [0x4aa24c]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004840a6
add esp, 8
test eax, eax
jl 0x411d6e
cmp eax, dword [esi - 8]
jg 0x411d6e
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jne 0x411bb1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x80]
push eax
push ecx
push 0x4b228c
lea edi, [esp + 0x28]
call fcn.00412b30
mov esi, dword [esp + 0x28]
add esp, 0xc
jmp 0x411bb8
push esi
call dword [0x4aa254]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
lea ebx, [esp + 0x88]
call fcn.004124e0
mov eax, dword [eax]
push esi
push eax
call fcn.004840c5
mov edi, eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411bfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x411c16
push 4
push edi
push esi
call ebp
mov byte [esp + 0x2b4], 4
lea eax, [esi - 0x10]
jmp 0x411c9e
call dword [0x4aa2b4]
cmp dword [esp + 0x2c4], 0
je 0x411c68
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
lea ebx, [esp + 0x88]
call fcn.004124e0
mov eax, dword [eax]
add esp, 8
push 4
push 0
push eax
call ebp
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b4], 4
lea eax, [esi - 0x10]
jmp 0x411c9e
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x50]
push edx
lea ebx, [esp + 0x88]
call fcn.004124e0
mov eax, dword [eax]
add esp, 8
push 4
push 0
push eax
call ebp
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411cb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b4], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411cdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [0x4aa214]
test eax, eax
jne 0x4117c0
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x24]
push eax
call dword [0x4aa210]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4aa20c]
mov dword [esp + 0x2b4], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411d44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.00482dc4
add esp, 0x2a4
ret
push 0x80070057
call fcn.00402aa0
int3