Function at 0x40f9e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x585978
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
xor ebx, ebx
cmp dword [0x5f2aec], ebx
jle 0x40fa89
xor esi, esi
cmp dword [ebp + 0x14fc], ebx
jle 0x40fa5e
lea esp, [esp]
cmp esi, ebx
jl 0x40fb36
cmp esi, dword [ebp + 0x14fc]
jge 0x40fb36
mov eax, dword [ebp + 0x14f8]
mov edi, dword [eax + esi*4]
cmp edi, ebx
lea eax, [eax + esi*4]
je 0x40fa53
push edi
call fcn.004c00d0
push edi
call fcn.005308f6
add esp, 4
add esi, 1
cmp esi, dword [ebp + 0x14fc]
jl 0x40fa20
mov eax, dword [ebp + 0x14f8]
cmp eax, ebx
je 0x40fa77
push eax
call fcn.005308f6
add esp, 4
mov dword [ebp + 0x14f8], ebx
mov dword [ebp + 0x1500], ebx
mov dword [ebp + 0x14fc], ebx
mov dword [ebp + 0x14dc], ebx
push 0xffffffffffffffff
push ebx
mov ecx, 0x5f2ae4
call fcn.00538df7
push str.plugin5
lea ecx, [esp + 0x28]
push 0x5f2878
push ecx
call fcn.00401ba0
add esp, 0xc
push ebx
mov dword [esp + 0x20], ebx
mov eax, dword [eax]
push 0x5f2ae4
push eax
call fcn.00460980
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40faea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [0x5f2aec]
xor esi, esi
cmp edi, ebx
jle 0x40fb62
mov ebx, dword [0x5f2ae8]
lea esp, [esp]
test esi, esi
jl 0x40fb36
cmp esi, edi
jge 0x40fb36
mov eax, dword [ebx + esi*4]
mov ecx, 0x5941b0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40fb3b
test dx, dx
je 0x40fb32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40fb3b
add eax, 4
add ecx, 4
test dx, dx
jne 0x40fb10
xor eax, eax
jmp 0x40fb40
call fcn.00530cad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40fb4d
add esi, 1
cmp esi, edi
jl 0x40fb00
jmp 0x40fb60
push 1
push esi
mov ecx, 0x5f2ae4
call fcn.00538fd9
mov edi, dword [0x5f2aec]
xor ebx, ebx
push 0x5941b0
push edi
mov ecx, 0x5f2ae4
call fcn.005390d4
mov eax, dword [0x5f2aec]
xor esi, esi
cmp eax, ebx
jle 0x40fbba
lea ecx, [ecx]
cmp esi, ebx
jl 0x40fb36
cmp esi, eax
jge 0x40fb36
mov ecx, dword [0x5f2ae8]
mov eax, dword [ecx + esi*4]
push eax
call fcn.0046c750
add esp, 4
test eax, eax
jne 0x40fbae
push 1
push esi
mov ecx, 0x5f2ae4
call fcn.00538fd9
sub esi, 1
mov eax, dword [0x5f2aec]
add esi, 1
cmp esi, eax
jl 0x40fb80
mov edx, dword [0x5f2630]
mov dword [ebp + 0x14ec], edx
mov dword [ebp + 0x14f0], ebp
mov dword [ebp + 0x14e8], 0x40e7c0
mov eax, dword [0x5f2aec]
xor esi, esi
test eax, eax
jle 0x40fd9d
test ebx, ebx
jl 0x40fb36
cmp ebx, eax
jge 0x40fb36
mov eax, dword [0x5f2ae8]
mov eax, dword [eax + ebx*4]
push eax
call fcn.0046c750
add esp, 4
test eax, eax
je 0x40fd8d
cmp ebx, dword [0x5f2aec]
jge 0x40fb36
mov ecx, dword [0x5f2ea0]
mov eax, dword [0x5f2e44]
mov edx, dword [0x5f2ae8]
push ecx
push eax
push eax
mov eax, dword [edx + ebx*4]
lea edi, [ebp + 0x14c0]
push eax
mov ecx, edi
call fcn.004a1df0
cmp ebx, dword [0x5f2aec]
jge 0x40fb36
mov edx, dword [0x5f2ae8]
mov eax, dword [edx + ebx*4]
mov ecx, 0x594134
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40fc86
test dx, dx
je 0x40fc82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40fc86
add eax, 4
add ecx, 4
test dx, dx
jne 0x40fc60
xor eax, eax
jmp 0x40fc8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40fcfa
test esi, esi
jl 0x40fb36
cmp esi, dword [edi + 0x3c]
jge 0x40fd5f
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + esi*4]
mov dword [ecx + 0x88], 0x40dfb0
cmp esi, dword [edi + 0x3c]
jge 0x40fb36
mov edx, dword [edi + 0x38]
mov eax, dword [edx + esi*4]
mov dword [eax + 0x80], 0x10
cmp esi, dword [edi + 0x3c]
jge 0x40fb36
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx + esi*4]
mov dword [edx + 0x84], 2
cmp esi, dword [edi + 0x3c]
jge 0x40fb36
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + esi*4]
mov dword [ecx + 0x78], 0
jmp 0x40fd5f
test esi, esi
jl 0x40fb36
cmp esi, dword [edi + 0x3c]
jge 0x40fd5f
mov edx, dword [edi + 0x38]
mov eax, dword [edx + esi*4]
mov dword [eax + 0x88], 0x40dfb0
cmp esi, dword [edi + 0x3c]
jge 0x40fb36
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx + esi*4]
mov dword [edx + 0x80], 0x10
cmp esi, dword [edi + 0x3c]
jge 0x40fb36
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + esi*4]
mov dword [ecx + 0x84], 2
cmp esi, dword [edi + 0x3c]
jge 0x40fb36
mov edx, dword [edi + 0x38]
mov eax, dword [edx + esi*4]
mov dword [eax + 0x78], 1
test esi, esi
jl 0x40fb36
cmp esi, dword [ebp + 0x14fc]
jge 0x40fb36
mov edx, dword [ebp + 0x14f8]
mov eax, dword [edx + esi*4]
xor ecx, ecx
cmp dword [0x5f22e4], ecx
sete cl
add esi, 1
mov dword [eax + 0x74], ecx
mov eax, dword [0x5f2aec]
add ebx, 1
cmp ebx, eax
jl 0x40fbe5
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4