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

Disassembly:
push 0xffffffffffffffff
push 0x43f0e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x450610]
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 0x41022f
movzx ecx, word [esi + 0x6e]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
cmp edi, ebp
je 0x41001e
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 0x41017c
test ebp, ebp
jl 0x41022a
cmp ebp, dword [esi + 0x34]
jge 0x41022a
mov edx, dword [esi + 0x30]
mov edi, dword [edx + ebp*4]
lea eax, [edx + ebp*4]
call fcn.0041a128
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41019d
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 0x4100be
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.004118e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.004020d0
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 0x4100ba
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 0x4100d8
test edi, edi
jne 0x4100cd
mov eax, dword [esi + 0x20]
push 0
push eax
call fcn.00410760
add esp, 8
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, edi
call fcn.004115b0
add dword [esi + 0x74], eax
cmp byte [esi + 0x40], 0
je 0x4100f4
push ebx
mov ecx, edi
call fcn.00411380
mov eax, dword [esi + 0x24]
movzx edx, word [esp + 0x1c]
mov ecx, dword [eax + 0x50]
cmp ecx, edx
je 0x410123
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 0x410127
mov dword [esi + 0x78], ebp
mov word [esi + 0x6e], ax
jmp 0x410127
inc word [esi + 0x70]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x410147
mov edi, dword [esp + 0x20]
mov eax, ebp
cdq
idiv edi
test edx, edx
jne 0x410147
mov eax, dword [ecx]
mov edx, dword [eax]
push edi
call edx
test al, al
je 0x4101a7
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 0x41016b
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 0x41002e
mov edi, dword [esp + 0x38]
test edi, edi
je 0x410189
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41022f
push eax
mov ecx, esi
call fcn.0040f640
push 0x80004005
call fcn.00401090
cmp byte [esp + 0x3c], 0
je 0x4101f5
mov ecx, dword [esi + 0x24]
cmp dword [ecx + 0x20], 0
je 0x4101c7
xor eax, eax
cmp byte [ecx + 0x4c], al
setne al
lea eax, [eax + eax - 1]
test eax, eax
jne 0x4101d0
mov dword [ecx + 0x30], 0
jmp 0x4101d5
call fcn.00412ee0
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 0x4101fd
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 0x410178
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410178
call fcn.0041945d
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