Function at 0x6151e9
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 0x615206
cmp dword [ebx + 0x2c], 0
jne 0x61520b
mov edi, ebx
mov dword [ebp + 0xc], edi
cmp dword [edi + 0x1c], ebx
je 0x615213
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.006119c9
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
jne 0x615269
push 0x660558
call fcn.006140a9
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 0x6153a7
cmp eax, 0x3c
je 0x6152a1
cmp eax, 0xffffffff
jne 0x6153b0
mov edi, dword [ebp - 0x14]
mov byte [esi], 0
cmp edi, 2
je 0x6152b1
cmp edi, 0xffffffff
jne 0x6152bf
push dword [ebp + 8]
call fcn.00613429
add esp, 4
mov dword [ebp - 4], eax
push dword [ebp + 8]
xor esi, esi
call fcn.006127d9
add esp, 4
test eax, eax
je 0x615396
mov eax, edi
sub eax, 1
je 0x615344
sub eax, 1
je 0x615328
sub eax, 1
jne 0x615396
cmp dword [ebx + 0x44], esi
je 0x615996
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 0x615396
push dword [edi]
push dword [ebp + 8]
push 0x6605a0
call fcn.006140a9
add esp, 0xc
jmp 0x615ad5
mov edi, dword [ebp - 8]
push 1
mov dword [edi + 0x18], 2
push dword [ebp + 8]
push edi
call fcn.00616ac9
add esp, 0xc
test eax, eax
jmp 0x615390
cmp dword [ebx + 0x2e8], esi
je 0x61537b
push dword [ebp + 8]
call fcn.00612a59
mov edi, dword [ebp - 8]
add esp, 4
cmp byte [eax], 0
je 0x61537e
cmp dword [edi + 0x18], esi
jne 0x61537e
mov dword [edi + 0x18], 1
push dword [ebp + 8]
push edi
call fcn.00614f39
add esp, 8
test eax, eax
jmp 0x615390
mov edi, dword [ebp - 8]
push dword [ebp + 8]
push 0
push edi
call fcn.00614ed9
mov esi, eax
add esp, 0xc
test esi, esi
je 0x6159a8
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 0x615aa7
cmp eax, 0x3c
jne 0x615957
mov eax, dword [ebx + 0x2f0]
push ebx
mov dword [ebp - 4], edi
call eax
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x6154e2
nop word [eax + eax]
push esi
call fcn.006139f9
add esp, 4
test eax, eax
jne 0x6154e2
cmp esi, 0x3e
je 0x6154e2
cmp esi, 0x2f
jne 0x615403
cmp edi, dword [ebp + 8]
ja 0x6154e2
jmp 0x615463
cmp esi, 0x3c
je 0x6159c0
cmp esi, 0x26
jne 0x61544b
push dword [ebp - 8]
push ebx
call fcn.00615f99
add esp, 8
cmp eax, 0xffffffff
je 0x615ad5
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.006150c9
add esp, 0x10
test eax, eax
je 0x615ad5
mov edi, dword [ebp - 4]
jmp 0x6154cb
cmp esi, 0x30
jge 0x615463
cmp esi, 0x21
je 0x615463
cmp esi, 0x2d
je 0x615463
cmp esi, 0x2e
jne 0x615ad5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.006150c9
add esp, 0x10
test eax, eax
je 0x615ad5
mov edi, dword [ebp - 4]
mov eax, edi
mov ecx, dword [ebp + 8]
sub eax, ecx
cmp eax, 1
jne 0x615494
cmp byte [ecx], 0x3f
je 0x6154e2
cmp eax, 3
jne 0x6154af
push eax
push 0x660610
push ecx
call 0x811f39
add esp, 0xc
test eax, eax
je 0x6154e2
mov ecx, dword [ebp + 8]
mov eax, edi
sub eax, ecx
cmp eax, 8
jne 0x6154cb
push eax
push 0x6602cc
push ecx
call 0x811f39
add esp, 0xc
test eax, eax
je 0x6154e2
mov eax, dword [ebx + 0x2f0]
push ebx
call eax
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x6153d9
mov byte [edi], 0
mov ecx, 0x660610
mov eax, dword [ebp + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x61550d
test dl, dl
je 0x615509
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x61550d
sbb ecx, 0x21
pop ebp
add dword [esi - 0x57ee0ae2], 0xcd26f941
inc ecx
stc
int 0x41
inc ecx
lock add byte [ecx + edx*4], cl
cmpsd dword [esi], dword es:[edi]
inc ebx
sub dword [ecx - 0x1eb6ef25], eax
pop ecx
mov ch, byte [ebp - 0x24]
jnp 0x615528
sahf
and al, byte [edx + 0x5a70ef88]
add dword [esp + 0x11bc5639], ecx
cmp dword [edi - 0x4ef6f7b5], esp
push es
mov word [ecx + edi], fs
push esi
mov esp, 0x4ba73911
or byte [ecx], cl
mov cl, 6
inc eax
sbb byte [ebx + 0x30536056], dh
jns 0x615509
jno 0x615535
invalid
pop es
push 0xf
add al, 0x88
or al, 0x61
int 0xc8
arpl si, si
sbb esi, esi
add al, 0x78
mov gs, word [ecx - 0x168e1adf]
invalid
invalid
or eax, 0xe6d1be30
test eax, 0xa00d2d1f
invalid
add cl, cl
cdq
xchg edx, eax
int3
not byte [ebx - 0x59]
pop edi
invalid
or dword [ecx], esp
fdiv st(0), st(0)
push eax
add dword [eax - 0x36], esi
cdq
or esi, esp
mov ch, byte [ecx]
dec ecx
lodsb al, byte [esi]
loop 0x615a53
pop edi
pop ecx
fcmovu st(0), st(1)
pop ss
nop
pop ebx
mov al, byte [eax + 0x117aa950]
test al, 0x3c
cmp dh, dl
mov ecx, 0xc46cf4c4
jnp 0x615b29
adc byte [eax - 0x57], 0x7a
adc dword [eax - 0x4629c7c4], ebp
invalid
cmp ecx, esi
sbb dword [ecx - 0x4c915ad4], ebp
les ecx, [ebx]
mov cl, 0xca
pop edi
xchg edi, eax
insd dword es:[edi], dx
movsd dword es:[edi], dword [esi]
outsb dx, byte [esi]
mov bl, 0xc4
or esi, dword [ecx + 0x6d975fca]
popal
dec ebp
and bl, bh
mov al, 0xe
or byte [eax*2 + 0x6f30b3c2], ah
fimul word [ebx - 0x19d6f3c6]
push 0x15dc43b3
test ch, bh
or dword [esp + edi*8 + 0x300b498c], edx
mov ah, byte [ebx - 0x7bd39fef]
scasd eax, dword es:[edi]
inc ecx
and dword [edx], ebp
jl 0x615ac0
aaa
mov byte [0x4108e964], al
lodsb al, byte [esi]
aaa
imul esp, esp, 0xffffffbb
xor eax, 0xf179c4dc
popal
js 0x615b86
ror byte [eax + 0x78e981c9], 1
das
jmp 0x3631474f
iretd
test al, 0xa2
pop ds
push cs
pop ebx
sub dword [eax], 0xffffffcf
hlt