Function at 0x5ca359
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x5ca376
cmp dword [ebx + 0x2c], 0
jne 0x5ca37b
mov edi, ebx
mov dword [ebp + 0xc], edi
cmp dword [edi + 0x1c], ebx
je 0x5ca383
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x40
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebx + 0x2e4], 0
mov dword [ebx + 0x2e8], 0
mov dword [ebp - 0x10], 0x40
call fcn.005c6b39
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
jne 0x5ca3d9
push 0x660558
call fcn.005c9219
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3c]
push edi
push ebx
mov dword [ebp - 4], esi
call eax
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2f0]
push ebx
call eax
mov edi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x1c], eax
cmp esi, edi
jbe 0x5ca517
cmp eax, 0x3c
je 0x5ca411
cmp eax, 0xffffffff
jne 0x5ca520
mov edi, dword [ebp - 0x14]
mov byte [esi], 0
cmp edi, 2
je 0x5ca421
cmp edi, 0xffffffff
jne 0x5ca42f
push dword [ebp + 8]
call fcn.005c8599
add esp, 4
mov dword [ebp - 4], eax
push dword [ebp + 8]
xor esi, esi
call fcn.005c7949
add esp, 4
test eax, eax
je 0x5ca506
mov eax, edi
sub eax, 1
je 0x5ca4b4
sub eax, 1
je 0x5ca498
sub eax, 1
jne 0x5ca506
cmp dword [ebx + 0x44], esi
je 0x5cab06
mov edi, dword [ebp - 8]
mov dword [edi + 0x18], 3
push dword [ebp + 8]
mov eax, dword [ebx + 0x44]
push edi
push ebx
call eax
add esp, 0xc
test eax, eax
jne 0x5ca506
push dword [edi]
push dword [ebp + 8]
push 0x6605a0
call fcn.005c9219
add esp, 0xc
jmp 0x5cac45
mov edi, dword [ebp - 8]
push 1
mov dword [edi + 0x18], 2
push dword [ebp + 8]
push edi
call fcn.005cbc39
add esp, 0xc
test eax, eax
jmp 0x5ca500
cmp dword [ebx + 0x2e8], esi
je 0x5ca4eb
push dword [ebp + 8]
call fcn.005c7bc9
mov edi, dword [ebp - 8]
add esp, 4
cmp byte [eax], 0
je 0x5ca4ee
cmp dword [edi + 0x18], esi
jne 0x5ca4ee
mov dword [edi + 0x18], 1
push dword [ebp + 8]
push edi
call fcn.005ca0a9
add esp, 8
test eax, eax
jmp 0x5ca500
mov edi, dword [ebp - 8]
push dword [ebp + 8]
push 0
push edi
call fcn.005ca049
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5cab18
mov eax, dword [ebp - 0xc]
test eax, eax
mov edi, dword [ebp + 8]
cmove eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x5cac17
cmp eax, 0x3c
jne 0x5caac7
mov eax, dword [ebx + 0x2f0]
push ebx
mov dword [ebp - 4], edi
call eax
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x5ca652
nop word [eax + eax]
push esi
call fcn.005c8b69
add esp, 4
test eax, eax
jne 0x5ca652
cmp esi, 0x3e
je 0x5ca652
cmp esi, 0x2f
jne 0x5ca573
cmp edi, dword [ebp + 8]
ja 0x5ca652
jmp 0x5ca5d3
cmp esi, 0x3c
je 0x5cab30
cmp esi, 0x26
jne 0x5ca5bb
push dword [ebp - 8]
push ebx
call fcn.005cb109
add esp, 8
cmp eax, 0xffffffff
je 0x5cac45
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.005ca239
add esp, 0x10
test eax, eax
je 0x5cac45
mov edi, dword [ebp - 4]
jmp 0x5ca63b
cmp esi, 0x30
jge 0x5ca5d3
cmp esi, 0x21
je 0x5ca5d3
cmp esi, 0x2d
je 0x5ca5d3
cmp esi, 0x2e
jne 0x5cac45
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.005ca239
add esp, 0x10
test eax, eax
je 0x5cac45
mov edi, dword [ebp - 4]
mov eax, edi
mov ecx, dword [ebp + 8]
sub eax, ecx
cmp eax, 1
jne 0x5ca604
cmp byte [ecx], 0x3f
je 0x5ca652
cmp eax, 3
jne 0x5ca61f
push eax
push 0x660610
push ecx
call 0x7c70a9
add esp, 0xc
test eax, eax
je 0x5ca652
mov ecx, dword [ebp + 8]
mov eax, edi
sub eax, ecx
cmp eax, 8
jne 0x5ca63b
push eax
push 0x6602cc
push ecx
call 0x7c70a9
add esp, 0xc
test eax, eax
je 0x5ca652
mov eax, dword [ebx + 0xc0002f0]
sub eax, 0xd663d51
leave
dec ecx
outsb dx, byte [esi]
sbb byte [ebx + 0x18], ah
adc edi, dword [ebp - 0x523e53cf]
push ebx
xchg byte [ecx - 0x7a723d73], al
outsd dx, dword [esi]
wait
std
mov cs, ebp
sal byte [edx + 0x515fda57], 0xf4
or bh, byte [edi]
insd dword es:[edi], dx
in eax, 0x63
dec ebp
popal
sub byte [eax - 0x2e], cl
shr edi, 0xd0
cld
pushal
jmp 0xa5dd17e2
leave
add byte [ebp + esi*2 + 0x65], ah
pop ds
sbb eax, 0xaeac2ff1
pop ds
mov dh, 0xd6
lahf
xchg ebx, eax
lodsd eax, dword [esi]
jmp 0x87c692da
imul ecx, dword [esp + ebx*8 + 0x51611d05], 0xffffffd4
and dword [edx - 0x19], ecx
retf 0xb8ca
jnp 0x5cab4f
xchg ecx, eax
mov dword [eax - 0x4cc2420b], esi
stosb byte es:[edi], al
push ecx
mov eax, esi
adc dword [esi + 0x38], edi
add ebp, dword [edi - 0x38ac6f1]
cmp bl, byte [ebp - 0x52]
scasb al, byte es:[edi]
iretd
inc ebp
ficomp word [ebp - 0x733056cb]
ror dword [esi], cl
inc ebp
iretd
sbb eax, 0xa7822c93
iretd
or eax, 0x89142f7a
inc ebx
and ecx, ecx
movsd dword es:[edi], dword [esi]
or byte [eax - 0x2a], al
mov byte [0x4b258635], al
adc bl, byte [ebx + 0x29b0c52b]
test dword [0x73c4fc49], edx
fstp xword [ebx + 0x23152cd4]
pop edi
mov byte [0xc63f1dcf], al
mov edx, 0xbaafb35d
xor cl, byte [ecx]
xchg edx, eax
outsd dx, dword [esi]
xchg edi, eax
adc ebp, esp
outsd dx, dword [esi]
pop edi
pop ebx
invalid