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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60979d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
xor eax, eax
mov dword [esp + 0x10], eax
mov ebx, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x44], eax
mov eax, dword [ebx]
mov edx, dword [eax]
push 0x652000
push ebx
call edx
test eax, eax
js 0x5a0981
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov esi, dword [esp + 0x10]
lea edi, [eax + ecx*4]
mov eax, edi
call fcn.00487648
test al, al
jne 0x5a0968
mov eax, dword [esp + 0x10]
test edi, edi
je 0x5a0968
mov esi, dword [edi]
mov dword [edi], 0
test eax, eax
je 0x5a095c
mov ecx, dword [eax]
mov edx, dword [ecx]
push edi
push 0x645818
push eax
call edx
test esi, esi
je 0x5a0968
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x258]
push ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
call edx
mov esi, dword [ebp + 0x14]
cmp word [esi + 8], 8
lea eax, [esi + 8]
jne 0x5a09a8
push 0
push 9
push eax
push ecx
mov eax, esp
mov dword [eax], 0x384
mov eax, dword [ebx]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x2c], esp
push ebx
call ecx
mov eax, dword [esi]
test eax, eax
js 0x5a0c91
mov edx, dword [esp + 0x14]
lea edi, [eax + eax*2]
shl edi, 4
add edi, dword [edx + 0xe0]
mov eax, 1
mov dword [esp + 0x2c], 0
call fcn.005c3e60
mov dword [esp + 0x28], eax
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x28]
mov byte [eax + 0x10], 1
mov ecx, dword [esp + 0x28]
mov byte [ecx + 0x11], 1
mov byte [esp + 0x40], 3
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x5a0a69
lea esp, [esp]
lea eax, [esi + 0xc]
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
call fcn.005b4354
cmp byte [esi + 0x15], 0
jne 0x5a0a64
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x5a0a49
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x5a0a64
jmp 0x5a0a3d
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x5a0a3d
jmp 0x5a0a64
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x5a0a62
cmp esi, dword [eax + 8]
jne 0x5a0a62
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x5a0a52
mov esi, eax
cmp esi, dword [edi + 4]
jne 0x5a0a0d
mov eax, dword [edi + 0x14]
mov esi, dword [eax]
cmp esi, eax
je 0x5a0ac9
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
call fcn.005b4354
cmp byte [esi + 0x29], 0
jne 0x5a0ac4
mov eax, dword [esi + 8]
cmp byte [eax + 0x29], 0
jne 0x5a0aa9
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x29], 0
jne 0x5a0ac4
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x29], 0
je 0x5a0a9d
jmp 0x5a0ac4
mov eax, dword [esi + 4]
cmp byte [eax + 0x29], 0
jne 0x5a0ac2
cmp esi, dword [eax + 8]
jne 0x5a0ac2
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x29], 0
je 0x5a0ab2
mov esi, eax
cmp esi, dword [edi + 0x14]
jne 0x5a0a72
mov eax, dword [edi + 0x24]
mov esi, dword [eax]
cmp esi, eax
je 0x5a0b29
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x2c]
call fcn.005b4354
cmp byte [esi + 0x1d], 0
jne 0x5a0b24
mov eax, dword [esi + 8]
cmp byte [eax + 0x1d], 0
jne 0x5a0b09
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
jne 0x5a0b24
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
je 0x5a0afd
jmp 0x5a0b24
mov eax, dword [esi + 4]
cmp byte [eax + 0x1d], 0
jne 0x5a0b22
cmp esi, dword [eax + 8]
jne 0x5a0b22
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x5a0b12
mov esi, eax
cmp esi, dword [edi + 0x24]
jne 0x5a0ad2
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
cmp esi, eax
je 0x5a0b8a
mov eax, dword [esi + 0xc]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x48]
push 0xa
push eax
push ebx
call ecx
cmp byte [esi + 0x11], 0
jne 0x5a0b84
mov eax, dword [esi + 8]
cmp byte [eax + 0x11], 0
jne 0x5a0b69
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x11], 0
jne 0x5a0b84
lea ecx, [ecx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x11], 0
je 0x5a0b5d
jmp 0x5a0b84
mov eax, dword [esi + 4]
cmp byte [eax + 0x11], 0
jne 0x5a0b82
cmp esi, dword [eax + 8]
jne 0x5a0b82
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x5a0b72
mov esi, eax
cmp esi, dword [esp + 0x28]
jne 0x5a0b33
mov byte [esp + 0x40], 5
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x24]
lea esi, [esp + 0x2c]
call fcn.005bbf07
mov byte [esp + 0x40], 0
mov eax, dword [0x6b7fe4]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
cmp eax, 1
je 0x5a0be2
jle 0x5a0bd7
cmp eax, 3
jg 0x5a0bd7
mov edx, dword [0x6b44d0]
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5a0c91
push edi
call fcn.00403b21
jmp 0x5a0c8e
test edi, edi
je 0x5a0c91
mov ebx, dword [0x6b44d4]
not ebx
and ebx, edi
cmp ebx, edi
je 0x5a0c85
mov ecx, dword [0x6b4530]
mov esi, dword [ebx]
sub edi, ebx
mov eax, edi
shr eax, cl
push esi
lea eax, [eax + eax*2]
test byte [ebx + eax*4 + 0x18], 2
lea eax, [ebx + eax*4 + 0x10]
mov dword [esp + 0x20], eax
jne 0x5a0c42
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push esi
call fcn.005706c2
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0x10]
jmp 0x5a0c91
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x6b4530]
mov eax, dword [0x6b45b4]
shr edi, cl
mov ecx, dword [esp + 0x18]
not eax
push ecx
lea edx, [edi + edi*2 + 6]
mov ebx, dword [ebx + edx*4]
and ebx, eax
sub dword [esi + 0x68], ebx
add dword [esi + 0x78], 1
push esi
adc dword [esi + 0x7c], 0
call fcn.0056fff7
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0x10]
jmp 0x5a0c91
push edi
call fcn.00570e62
mov ebx, dword [ebp + 0x10]
add esp, 4
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x18]
mov esi, dword [eax]
cmp esi, eax
je 0x5a0cc2
mov edi, edx
push 0
push 9
lea eax, [esi + 0x10]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x3c]
mov dword [esp + 0x2c], esp
push ebx
call edx
mov esi, dword [esi]
cmp esi, dword [edi + 0x18]
jne 0x5a0c9f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x24]
mov edi, dword [eax]
cmp edi, eax
je 0x5a0d0a
mov eax, dword [edi + 0xc]
mov esi, dword [eax]
cmp esi, eax
je 0x5a0d00
lea ebx, [ebx]
mov edx, dword [edi + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 8]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.005a0d74
mov esi, dword [esi]
cmp esi, dword [edi + 0xc]
jne 0x5a0cdd
mov edi, dword [edi]
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax + 0x24]
jne 0x5a0cce
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x30]
mov esi, dword [eax]
cmp esi, eax
je 0x5a0d3d
mov edi, dword [esp + 0x14]
lea ecx, [ecx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [esi + 8]
push edx
push 0
push eax
push ecx
push edi
mov ecx, ebx
call fcn.005a0d74
mov esi, dword [esi]
mov edx, dword [ebp + 0x14]
cmp esi, dword [edx + 0x30]
jne 0x5a0d1d
mov eax, dword [ebx]
mov ecx, dword [eax + 0x2c]
push ebx
call ecx
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5a0d5d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10