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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f78c2
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 0x640918
push ebx
call edx
test eax, eax
js 0x58e4ba
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.0048482b
test al, al
jne 0x58e4a1
mov eax, dword [esp + 0x10]
test edi, edi
je 0x58e4a1
mov esi, dword [edi]
mov dword [edi], 0
test eax, eax
je 0x58e495
mov ecx, dword [eax]
mov edx, dword [ecx]
push edi
push 0x633310
push eax
call edx
test esi, esi
je 0x58e4a1
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 0x58e4e1
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 0x58e7ca
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.005b1b7c
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 0x58e5a2
lea esp, [esp]
lea eax, [esi + 0xc]
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
call fcn.005a1af9
cmp byte [esi + 0x15], 0
jne 0x58e59d
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x58e582
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x58e59d
jmp 0x58e576
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x58e576
jmp 0x58e59d
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x58e59b
cmp esi, dword [eax + 8]
jne 0x58e59b
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x58e58b
mov esi, eax
cmp esi, dword [edi + 4]
jne 0x58e546
mov eax, dword [edi + 0x14]
mov esi, dword [eax]
cmp esi, eax
je 0x58e602
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
call fcn.005a1af9
cmp byte [esi + 0x29], 0
jne 0x58e5fd
mov eax, dword [esi + 8]
cmp byte [eax + 0x29], 0
jne 0x58e5e2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x29], 0
jne 0x58e5fd
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x29], 0
je 0x58e5d6
jmp 0x58e5fd
mov eax, dword [esi + 4]
cmp byte [eax + 0x29], 0
jne 0x58e5fb
cmp esi, dword [eax + 8]
jne 0x58e5fb
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x29], 0
je 0x58e5eb
mov esi, eax
cmp esi, dword [edi + 0x14]
jne 0x58e5ab
mov eax, dword [edi + 0x24]
mov esi, dword [eax]
cmp esi, eax
je 0x58e662
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x2c]
call fcn.005a1af9
cmp byte [esi + 0x1d], 0
jne 0x58e65d
mov eax, dword [esi + 8]
cmp byte [eax + 0x1d], 0
jne 0x58e642
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
jne 0x58e65d
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
je 0x58e636
jmp 0x58e65d
mov eax, dword [esi + 4]
cmp byte [eax + 0x1d], 0
jne 0x58e65b
cmp esi, dword [eax + 8]
jne 0x58e65b
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x58e64b
mov esi, eax
cmp esi, dword [edi + 0x24]
jne 0x58e60b
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
cmp esi, eax
je 0x58e6c3
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 0x58e6bd
mov eax, dword [esi + 8]
cmp byte [eax + 0x11], 0
jne 0x58e6a2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x11], 0
jne 0x58e6bd
lea ecx, [ecx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x11], 0
je 0x58e696
jmp 0x58e6bd
mov eax, dword [esi + 4]
cmp byte [eax + 0x11], 0
jne 0x58e6bb
cmp esi, dword [eax + 8]
jne 0x58e6bb
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x58e6ab
mov esi, eax
cmp esi, dword [esp + 0x28]
jne 0x58e66c
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.005a9890
mov byte [esp + 0x40], 0
mov eax, dword [0x6a2f74]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
cmp eax, 1
je 0x58e71b
jle 0x58e710
cmp eax, 3
jg 0x58e710
mov edx, dword [0x69f4c8]
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x58e7ca
push edi
call fcn.00403b21
jmp 0x58e7c7
test edi, edi
je 0x58e7ca
mov ebx, dword [0x69f4cc]
not ebx
and ebx, edi
cmp ebx, edi
je 0x58e7be
mov ecx, dword [0x69f528]
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 0x58e77b
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.0055e3dc
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0x10]
jmp 0x58e7ca
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x69f528]
mov eax, dword [0x69f5ac]
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.0055dd11
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0x10]
jmp 0x58e7ca
push edi
call fcn.0055eb7c
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 0x58e7fb
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 0x58e7d8
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x24]
mov edi, dword [eax]
cmp edi, eax
je 0x58e843
mov eax, dword [edi + 0xc]
mov esi, dword [eax]
cmp esi, eax
je 0x58e839
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.0058e8ad
mov esi, dword [esi]
cmp esi, dword [edi + 0xc]
jne 0x58e816
mov edi, dword [edi]
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax + 0x24]
jne 0x58e807
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x30]
mov esi, dword [eax]
cmp esi, eax
je 0x58e876
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.0058e8ad
mov esi, dword [esi]
mov edx, dword [ebp + 0x14]
cmp esi, dword [edx + 0x30]
jne 0x58e856
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 0x58e896
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