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

Disassembly:
push 0xffffffffffffffff
push 0x874a58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x10]
push 0x20
push esi
call fcn.0080a520
add esp, 8
mov edi, eax
sub eax, esi
push eax
push esi
lea ecx, [ebx + 0x5c]
call fcn.004b1190
lea ecx, [ebx + 0x5c]
call fcn.0059efa0
lea esi, [edi + 1]
push 0x20
push esi
call fcn.0080a520
mov edi, eax
add esp, 8
mov ecx, edi
sub ecx, esi
push ecx
push esi
lea ecx, [ebx + 0x60]
call fcn.004b1190
lea esi, [edi + 1]
push 0x42832c
push esi
call fcn.0080a5e0
mov ebp, eax
add esp, 8
mov edx, ebp
sub edx, esi
push edx
push esi
lea ecx, [ebx + 0x68]
call fcn.004b1190
lea ecx, [ebx + 0x68]
call fcn.0059efa0
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x5a7cae
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], 0
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x5a7ce0
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
add ebp, 2
mov byte [esp + 0x34], 1
cmp ebp, dword [esp + 0x3c]
jae 0x5a7e60
push 0x3a
push ebp
call fcn.0080a520
mov esi, eax
add esp, 8
mov ecx, esi
sub ecx, ebp
push ecx
push ebp
lea ecx, [esp + 0x1c]
call fcn.004b1190
inc esi
push 0x42832c
push esi
call fcn.0080a5e0
mov edi, eax
add esp, 8
mov edx, edi
sub edx, esi
push edx
push esi
lea ecx, [esp + 0x20]
call fcn.004b1190
lea ebp, [edi + 2]
mov edi, dword [esp + 0x14]
mov esi, dword [edi - 0xc]
test esi, esi
js 0x5a7e93
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x5a7d6f
push esi
lea ecx, [esp + 0x18]
call fcn.004b05e0
mov edi, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edi
call fcn.00808b43
add esp, 8
cmp eax, 0x50
ja case.0x5a7d8c.0
movzx ecx, byte [eax + 0x5a7fa4]
jmp dword [ecx*4 + 0x5a7f94]
cmp esi, dword [edi - 8]
jg 0x5a7e93
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [edi - 0xc], esi
push edi
lea ecx, [ebx + 0x70]
mov byte [esi + edi], 0
call fcn.005ec920
test eax, eax
jne 0x5a7ded
cmp dword [ebx + 0x70], eax
jne 0x5a7dda
mov edx, dword [ebx + 0x78]
push 1
push edx
lea ecx, [ebx + 0x70]
call fcn.00635dd0
test al, al
je 0x5a7ea7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edi
lea ecx, [ebx + 0x70]
call fcn.005a5b90
mov edx, dword [esp + 0x18]
mov esi, dword [eax + 4]
add eax, 4
add edx, 0xfffffff0
sub esi, 0x10
mov dword [esp + 0x28], eax
cmp edx, esi
je 0x5a7e56
cmp dword [esi + 0xc], 0
jl 0x5a7e46
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x5a7e46
push edx
call fcn.004afcb0
mov dword [esp + 0x28], eax
add esp, 4
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x5a7e37
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add eax, 0x10
mov dword [ecx], eax
jmp 0x5a7e56
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
push ecx
push edx
mov ecx, eax
call fcn.004b1190
cmp ebp, dword [esp + 0x3c]
jb 0x5a7d02
lea eax, [ebx + 0x5c]
push 0x4289c8
push eax
call fcn.005a0190
add esp, 8
test al, al
je 0x5a7f28
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x5a7eb1
push 0x80004005
call fcn.004a8210
push 0x80070057
call fcn.004a8210
call fcn.007c863e
call fcn.007c8676
push 0x8007000e
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x3c], esi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [ebx + 0x70]
push 0x428a00
mov byte [esp + 0x44], 2
call fcn.005ec920
test eax, eax
je 0x5a7f07
add eax, 4
push eax
lea ecx, [esp + 0x40]
call fcn.004b1400
mov esi, dword [esp + 0x3c]
push 0xa
push 0
push esi
call fcn.0080995e
add esp, 0xc
mov dword [ebx + 0x24], eax
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5a7f28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp dword [ebx + 0x24], ecx
mov byte [esp + 0x34], 0
setle cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
inc ecx
mov dword [ebx + 0x20], ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5a7f59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5a7f7d
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4