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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x30], esi
cmp dword [esi + 0x8170], 0
je 0x5cdef2
cmp dword [esi + 0x8148], 0
je 0x5cd83d
call fcn.005d3a30
mov ebx, dword [esi + 0x80]
mov byte [esp + 0x12], 0
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x1c]
cmp byte [eax], 0
je 0x5cd866
mov eax, dword [eax + 4]
cmp eax, 0x6b64754d
jne 0x5cdf13
jmp 0x5cdefb
mov eax, dword [edi + 0x10]
test eax, eax
je 0x5cd876
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi + 0x14], ebx
lea ebx, [esi + 0x8174]
mov ecx, dword [ebx + 0x18]
mov byte [esp + 0x13], 1
mov dword [esp + 0x1c], ebx
test ecx, ecx
je 0x5cd8e3
cmp dword [ecx + 0x18], 1
jne 0x5cd89d
mov dl, 1
mov byte [esp + 0x12], dl
jmp 0x5cd8e7
mov eax, dword [ecx]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x5cd8cc
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx]
mov byte [esp + 0x13], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov ecx, dword [ebx + 0x18]
dec dword [ecx + 0x18]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
dec dword [esi + 0x8170]
mov dl, byte [esp + 0x12]
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x5cd944
cmp dword [ecx + 0x18], 1
jne 0x5cd8fc
mov dl, 1
mov byte [esp + 0x12], dl
jmp 0x5cd944
mov eax, dword [ecx]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x5cd92d
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x20]
mov byte [esp + 0x13], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [ecx + 8], eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov ecx, dword [ebx + 0x38]
dec dword [ecx + 0x18]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
dec dword [esi + 0x8170]
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x5cd9a1
cmp dword [ecx + 0x18], 1
jne 0x5cd959
mov dl, 1
mov byte [esp + 0x12], dl
jmp 0x5cd9a1
mov eax, dword [ecx]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x5cd98a
mov ecx, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x40]
mov byte [esp + 0x13], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x48]
mov dword [ecx + 8], eax
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov ecx, dword [ebx + 0x58]
dec dword [ecx + 0x18]
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
dec dword [esi + 0x8170]
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x5cd9fe
cmp dword [ecx + 0x18], 1
jne 0x5cd9b6
mov dl, 1
mov byte [esp + 0x12], dl
jmp 0x5cd9fe
mov eax, dword [ecx]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x5cd9e7
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x60]
mov byte [esp + 0x13], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x68]
mov dword [ecx + 8], eax
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov ecx, dword [ebx + 0x78]
dec dword [ecx + 0x18]
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
dec dword [esi + 0x8170]
mov ecx, dword [ebx + 0x98]
test ecx, ecx
je 0x5cda76
cmp dword [ecx + 0x18], 1
jne 0x5cda16
mov dl, 1
mov byte [esp + 0x12], dl
jmp 0x5cda76
mov eax, dword [ecx]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x5cda59
mov ecx, dword [ebx + 0x9c]
mov eax, dword [ebx + 0x80]
mov byte [esp + 0x13], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x88]
mov dword [ecx + 8], eax
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov ecx, dword [ebx + 0x98]
dec dword [ecx + 0x18]
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
dec dword [esi + 0x8170]
mov ecx, dword [ebx + 0xb8]
test ecx, ecx
je 0x5cdaee
cmp dword [ecx + 0x18], 1
jne 0x5cda8e
mov dl, 1
mov byte [esp + 0x12], dl
jmp 0x5cdaee
mov eax, dword [ecx]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x5cdad1
mov ecx, dword [ebx + 0xbc]
mov eax, dword [ebx + 0xa0]
mov byte [esp + 0x13], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0xa8]
mov dword [ecx + 8], eax
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov ecx, dword [ebx + 0xb8]
dec dword [ecx + 0x18]
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
dec dword [esi + 0x8170]
mov ecx, dword [ebx + 0xd8]
test ecx, ecx
je 0x5cdb66
cmp dword [ecx + 0x18], 1
jne 0x5cdb06
mov dl, 1
mov byte [esp + 0x12], dl
jmp 0x5cdb66
mov eax, dword [ecx]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x5cdb49
mov ecx, dword [ebx + 0xdc]
mov eax, dword [ebx + 0xc0]
mov byte [esp + 0x13], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0xc8]
mov dword [ecx + 8], eax
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xc4], 0
mov ecx, dword [ebx + 0xd8]
dec dword [ecx + 0x18]
mov dword [ebx + 0xd8], 0
mov dword [ebx + 0xdc], 0
dec dword [esi + 0x8170]
mov ecx, dword [ebx + 0xf8]
test ecx, ecx
je 0x5cdbde
cmp dword [ecx + 0x18], 1
jne 0x5cdb7e
mov dl, 1
mov byte [esp + 0x12], dl
jmp 0x5cdbde
mov eax, dword [ecx]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x5cdbc1
mov ecx, dword [ebx + 0xfc]
mov eax, dword [ebx + 0xe0]
mov byte [esp + 0x13], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0xe8]
mov dword [ecx + 8], eax
mov dword [ebx + 0xe0], 0
mov dword [ebx + 0xe4], 0
mov ecx, dword [ebx + 0xf8]
dec dword [ecx + 0x18]
mov dword [ebx + 0xf8], 0
mov dword [ebx + 0xfc], 0
dec dword [esi + 0x8170]
mov eax, dword [esi + 0x80]
mov ecx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 0x1c]
mov dword [eax + 0x14], 0
mov eax, dword [eax + 0x10]
test eax, eax
je 0x5cdc06
push eax
call ecx
mov dl, byte [esp + 0x12]
cmp dword [esi + 0x8170], 0
jne 0x5cdc19
mov eax, dword [esi + 0x80]
mov byte [eax + 0x2c], 0
cmp dword [esi + 0x8164], 0
je 0x5cdc4e
cmp byte [esp + 0x13], 0
jne 0x5cdc4e
mov eax, dword [esi + 0x8158]
mov ecx, dword [esi + 0x8154]
sub eax, ecx
shl eax, 2
cmp eax, dword [esi + 0x8150]
jle 0x5cdc48
mov dword [esi + 0x8150], eax
mov dword [esi + 0x8158], ecx
test dl, dl
je 0x5cdef2
cmp byte [ebp + 8], 0
mov edi, dword [esi + 0x80]
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x14]
je 0x5cdc9d
cmp byte [eax], 0
mov dword [esp + 0x18], ecx
je 0x5cdc84
mov eax, dword [eax + 4]
cmp eax, 0x6b64754d
jne 0x5cdf3e
jmp 0x5cdf26
mov eax, dword [ecx]
test eax, eax
je 0x5cdc98
push 0xffffffffffffffff
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], edi
jmp 0x5cdcdc
cmp byte [eax], 0
mov dword [esp + 0x14], ecx
je 0x5cdcb9
mov eax, dword [eax + 4]
cmp eax, 0x6b64754d
jne 0x5cdf69
jmp 0x5cdf51
mov eax, dword [ecx]
test eax, eax
je 0x5cdef2
push 0
push eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
test eax, eax
jne 0x5cdef2
mov eax, dword [esp + 0x14]
mov dword [eax + 4], edi
fld qword [0x6a7dc0]
mov ecx, 8
fstp qword [esp + 0x38]
mov dword [esp + 0x14], ecx
nop
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x18], edx
test edx, edx
je 0x5cde9c
mov eax, dword [edx]
mov edi, dword [eax]
cmp dword [edi + 4], 0
jne 0x5cdd2a
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x14]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [edx + 0x18], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
dec dword [esi + 0x8170]
cmp dword [edi + 4], 0
je 0x5cddc3
or dword [edx + 8], 0x10
mov eax, dword [edx + 8]
mov dword [edx + 0x18], 0
test al, 8
jne 0x5cdd76
test al, 4
je 0x5cde9c
mov eax, dword [edx]
mov eax, dword [eax]
cmp byte [eax + 0x159], 0
jne 0x5cde9c
mov edx, dword [edx + 4]
mov ecx, dword [edx]
mov eax, dword [ecx + 8]
test al, 0x20
jne 0x5cde98
or eax, 0x10
mov dword [ecx + 8], eax
test al, 8
je 0x5cddb7
mov eax, dword [ecx]
mov eax, dword [eax]
cmp byte [eax + 0x15a], 0
jne 0x5cddb7
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x5cdda9
cmp eax, dword [ecx + 0x10]
jne 0x5cddb7
push ecx
mov ecx, dword [ecx + 0x34]
call fcn.005f9060
jmp 0x5cde98
mov ecx, edx
call fcn.005f3070
jmp 0x5cde98
cmp dword [edi + 8], 0
je 0x5cde9c
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov eax, dword [ecx + 0x34]
mov dword [edx + 0x30], eax
test eax, eax
jne 0x5cdde5
mov dword [ecx + 0x30], edx
jmp 0x5cddeb
mov eax, dword [ecx + 0x34]
mov dword [eax + 0x2c], edx
mov dword [ecx + 0x34], edx
mov ecx, dword [edx]
mov eax, dword [edx + 4]
sub eax, dword [ecx + 0xb4]
mov ebx, dword [ecx + 0x94]
sar eax, 3
mov dword [esp + 0x20], eax
cdq
idiv ebx
mov esi, dword [ecx + 0x80]
mov edi, dword [ecx + 0x78]
mov edx, dword [ecx + 0x7c]
mov ecx, dword [ecx + 0x84]
mov dword [esp + 0x24], eax
imul ebx, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x8c]
sub eax, ebx
add eax, dword [esp + 0x20]
imul eax, ecx
add edx, eax
mov eax, esi
mov dword [esp + 0x4c], edx
mov ecx, dword [eax]
mov eax, dword [ecx + 0x88]
add eax, dword [esp + 0x24]
imul eax, dword [esp + 0x28]
add edi, eax
lea eax, [ecx + 0x18]
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x4c], edi
push eax
lea ecx, [esp + 0x50]
call fcn.005c7b00
mov eax, dword [esp + 0x54]
imul dword [esp + 0x50]
fld qword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
add dword [ecx + 0x38], eax
fst qword [ecx + 0x48]
adc dword [ecx + 0x3c], edx
fstp qword [ecx + 0x40]
mov ecx, dword [esp + 0x14]
dec ecx
add ebx, 0x20
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
test ecx, ecx
jg 0x5cdcf0
mov eax, dword [esi + 0x80]
mov byte [eax + 0x2c], 0
cmp dword [esi + 0x8164], 0
je 0x5cded7
cmp byte [esp + 0x13], 0
jne 0x5cded7
push 1
lea ecx, [esi + 0x814c]
call fcn.005c97f0
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0x1c]
mov dword [eax + 4], 0
mov eax, dword [eax]
test eax, eax
je 0x5cdef2
push eax
call dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x38]
call fcn.004b16b6
push 0x6df11c
lea eax, [esp + 0x3c]
push eax
call fcn.004b4774
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 0x6e1920
push eax
call fcn.004b4774
lea ecx, [esp + 0x38]
call fcn.004b16b6
push 0x6df11c
lea eax, [esp + 0x3c]
push eax
call fcn.004b4774
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 0x6e1920
push eax
call fcn.004b4774
lea ecx, [esp + 0x38]
call fcn.004b16b6
push 0x6df11c
lea eax, [esp + 0x3c]
push eax
call fcn.004b4774
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 0x6e1920
push eax
call fcn.004b4774
int3