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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5eb7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x18], ecx
xor ecx, ecx
push 1
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0xb4]
push ecx
lea esi, [esp + 0x28]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call fcn.004316d0
test al, al
jne 0x45f64d
xor ebx, ebx
push ebx
push 0x6190bc
lea esi, [esp + 0x50]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
call fcn.00402770
mov dword [esp + 0x70], ebx
mov esi, dword [edi]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
lea edx, [esp + 0x4c]
push edx
push 0x10000002
mov ecx, edi
call eax
cmp dword [esp + 0x60], 8
jb 0x45f636
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0059b877
add esp, 4
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x14]
jne 0x45f661
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
je 0x45f690
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x78]
mov eax, dword [edi + 0xb4]
push 0
push ecx
push edx
lea esi, [esp + 0x28]
call fcn.004316d0
test al, al
je 0x45f636
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebx + 0x78]
jne 0x45f636
mov ecx, dword [esp + 0x20]
cmp ecx, dword [ebx + 0x7c]
jne 0x45f636
xor esi, esi
lea ebx, [edi + 8]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov eax, ebx
mov dword [esp + 0x70], 1
mov dword [esp + 0x14], esi
call fcn.004902f0
test eax, eax
ja 0x45f776
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x70]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call edx
mov byte [esp + 0x70], 3
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x45f8b2
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push ecx
push ecx
push 0x30000003
mov ecx, edi
call edx
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x45f729
or ecx, 0xffffffff
lea eax, [esi + 4]
lock xadd dword [eax], ecx
jne 0x45f729
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
or edx, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], edx
jne 0x45f729
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45f636
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x40]
push ecx
call fcn.00459790
mov edx, dword [esp + 0x40]
add esp, 4
push edx
call fcn.0059b877
add esp, 4
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x14]
mov dl, byte [edi + 0x100]
test dl, dl
jne 0x45f6bc
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x45f797
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x45f79c
call fcn.005b8b18
mov eax, dword [ebx + 4]
mov ecx, dword [eax + esi*8]
lea eax, [eax + esi*8]
mov esi, dword [eax + 4]
test esi, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
je 0x45f7c0
lea edx, [esi + 4]
mov eax, 1
lock xadd dword [edx], eax
sub esp, 8
test esi, esi
mov byte [esp + 0x78], 2
mov eax, esp
mov dword [eax], ecx
mov dword [esp + 0x24], esp
mov dword [eax + 4], esi
je 0x45f7e3
lea ecx, [esi + 4]
mov edx, 1
lock xadd dword [ecx], edx
lea eax, [esp + 0x40]
push eax
lea ecx, [edi + 0xd4]
push ecx
mov ecx, edi
call fcn.00460390
test al, al
je 0x45f84c
test esi, esi
mov byte [esp + 0x70], 1
je 0x45f82d
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x45f82d
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x45f82d
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, dword [esp + 0x14]
add esi, 1
mov eax, ebx
mov dword [esp + 0x14], esi
call fcn.004902f0
cmp esi, eax
jb 0x45f772
jmp 0x45f6bc
mov al, byte [edi + 0x100]
test al, al
je 0x45f87c
cmp dword [edi + 0x104], 0
je 0x45f87c
mov ecx, dword [edi + 0x104]
mov eax, dword [ecx]
movzx edx, byte [edi + 0x100]
mov ecx, dword [edi + 0x104]
add eax, 0x14
mov eax, dword [eax]
push edx
call eax
lea eax, [esp + 0x30]
mov byte [esp + 0x70], 1
call fcn.00565750
lea esi, [esp + 0x38]
mov dword [esp + 0x70], 0xffffffff
call fcn.00518ae0
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov ecx, dword [esp + 0x28]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x24], esp
je 0x45f8e3
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esi + 0x84]
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x6c]
push edx
mov edx, dword [esi + 0x68]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push eax
mov ebx, edi
call fcn.00460700
test al, al
jne 0x45f947
mov cl, byte [edi + 0x100]
test cl, cl
je 0x45f6f2
cmp dword [edi + 0x104], 0
je 0x45f6f2
mov edx, dword [edi + 0x104]
movzx ecx, byte [edi + 0x100]
mov eax, dword [edx]
mov edx, dword [eax + 0x14]
add eax, 0x14
push ecx
mov ecx, dword [edi + 0x104]
call edx
jmp 0x45f6f2
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x45f97e
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x45f97e
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x45f97e
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45f9ac
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x40]
push ecx
call fcn.00459790
mov edx, dword [esp + 0x40]
add esp, 4
push edx
call fcn.0059b877
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4