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

Disassembly:
push 0xffffffffffffffff
push 0x43f1a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45060c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x24]
xor eax, eax
mov word [esi + 0x70], ax
mov eax, dword [edi + 0x50]
mov word [esi + 0x6e], ax
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add eax, dword [edi + 0x30]
xor ebp, ebp
sub eax, dword [esi + 0x68]
mov dword [esi + 0x78], eax
cmp word [esi + 0x72], bp
je 0x41021f
movzx ecx, word [esi + 0x6e]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
cmp edi, ebp
je 0x41000e
mov edx, dword [edi]
mov eax, dword [edx + 4]
push ebp
push ebp
mov ecx, edi
call eax
movzx eax, word [esi + 0x72]
mov edx, dword [edi]
mov edx, dword [edx + 8]
push eax
mov ecx, edi
call edx
mov eax, dword [0x44e6a0]
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [esp + 0x18], ebp
cmp cx, word [esi + 0x72]
jae 0x41016c
test ebp, ebp
jl 0x41021a
cmp ebp, dword [esi + 0x34]
jge 0x41021a
mov edx, dword [esi + 0x30]
mov edi, dword [edx + ebp*4]
lea eax, [edx + ebp*4]
call fcn.0041a118
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41018d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
cmp byte [esi + 0x40], 0
mov dword [esp + 0x30], 0
je 0x4100ae
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.004118d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.00402100
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4100aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
cmp byte [esi + 0x40], 1
mov eax, edi
jne 0x4100c8
test edi, edi
jne 0x4100bd
mov eax, dword [esi + 0x20]
push 0
push eax
call fcn.00410750
add esp, 8
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, edi
call fcn.004115a0
add dword [esi + 0x74], eax
cmp byte [esi + 0x40], 0
je 0x4100e4
push ebx
mov ecx, edi
call fcn.00411370
mov eax, dword [esi + 0x24]
movzx edx, word [esp + 0x1c]
mov ecx, dword [eax + 0x50]
cmp ecx, edx
je 0x410113
mov ecx, 1
mov word [esi + 0x70], cx
mov eax, dword [eax + 0x50]
movzx edx, ax
mov dword [esp + 0x1c], edx
test ebp, ebp
jne 0x410117
mov dword [esi + 0x78], ebp
mov word [esi + 0x6e], ax
jmp 0x410117
inc word [esi + 0x70]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x410137
mov edi, dword [esp + 0x20]
mov eax, ebp
cdq
idiv edi
test edx, edx
jne 0x410137
mov eax, dword [ecx]
mov edx, dword [eax]
push edi
call edx
test al, al
je 0x410197
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41015b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx ecx, word [esi + 0x72]
inc ebp
cmp ebp, ecx
jl 0x41001e
mov edi, dword [esp + 0x38]
test edi, edi
je 0x410179
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41021f
push eax
mov ecx, esi
call fcn.0040f630
push 0x80004005
call fcn.00401090
cmp byte [esp + 0x3c], 0
je 0x4101e5
mov ecx, dword [esi + 0x24]
cmp dword [ecx + 0x20], 0
je 0x4101b7
xor eax, eax
cmp byte [ecx + 0x4c], al
setne al
lea eax, [eax + eax - 1]
test eax, eax
jne 0x4101c0
mov dword [ecx + 0x30], 0
jmp 0x4101c5
call fcn.00412ed0
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + 0x1c]
mov edx, dword [esi + 0x78]
add edx, dword [esi + 0x68]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
push 0
push edx
call eax
mov dword [esp + 0x18], 0x6a
jmp 0x4101ed
mov dword [esp + 0x18], 0x69
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410168
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410168
call fcn.0041944d
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8