Function at 0x5340e1
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 0x5340fe
cmp dword [ebx + 0x2c], 0
jne 0x534103
mov edi, ebx
mov dword [ebp + 0xc], edi
cmp dword [edi + 0x1c], ebx
je 0x53410b
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.005308c1
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
jne 0x534161
push 0x660558
call fcn.00532fa1
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 0x53429f
cmp eax, 0x3c
je 0x534199
cmp eax, 0xffffffff
jne 0x5342a8
mov edi, dword [ebp - 0x14]
mov byte [esi], 0
cmp edi, 2
je 0x5341a9
cmp edi, 0xffffffff
jne 0x5341b7
push dword [ebp + 8]
call fcn.00532321
add esp, 4
mov dword [ebp - 4], eax
push dword [ebp + 8]
xor esi, esi
call fcn.005316d1
add esp, 4
test eax, eax
je 0x53428e
mov eax, edi
sub eax, 1
je 0x53423c
sub eax, 1
je 0x534220
sub eax, 1
jne 0x53428e
cmp dword [ebx + 0x44], esi
je 0x53488e
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 0x53428e
push dword [edi]
push dword [ebp + 8]
push 0x6605a0
call fcn.00532fa1
add esp, 0xc
jmp 0x5349cd
mov edi, dword [ebp - 8]
push 1
mov dword [edi + 0x18], 2
push dword [ebp + 8]
push edi
call fcn.005359c1
add esp, 0xc
test eax, eax
jmp 0x534288
cmp dword [ebx + 0x2e8], esi
je 0x534273
push dword [ebp + 8]
call fcn.00531951
mov edi, dword [ebp - 8]
add esp, 4
cmp byte [eax], 0
je 0x534276
cmp dword [edi + 0x18], esi
jne 0x534276
mov dword [edi + 0x18], 1
push dword [ebp + 8]
push edi
call fcn.00533e31
add esp, 8
test eax, eax
jmp 0x534288
mov edi, dword [ebp - 8]
push dword [ebp + 8]
push 0
push edi
call fcn.00533dd1
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5348a0
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 0x53499f
cmp eax, 0x3c
jne 0x53484f
mov eax, dword [ebx + 0x2f0]
push ebx
mov dword [ebp - 4], edi
call eax
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x5343da
nop word [eax + eax]
push esi
call fcn.005328f1
add esp, 4
test eax, eax
jne 0x5343da
cmp esi, 0x3e
je 0x5343da
cmp esi, 0x2f
jne 0x5342fb
cmp edi, dword [ebp + 8]
ja 0x5343da
jmp 0x53435b
cmp esi, 0x3c
je 0x5348b8
cmp esi, 0x26
jne 0x534343
push dword [ebp - 8]
push ebx
call fcn.00534e91
add esp, 8
cmp eax, 0xffffffff
je 0x5349cd
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00533fc1
add esp, 0x10
test eax, eax
je 0x5349cd
mov edi, dword [ebp - 4]
jmp 0x5343c3
cmp esi, 0x30
jge 0x53435b
cmp esi, 0x21
je 0x53435b
cmp esi, 0x2d
je 0x53435b
cmp esi, 0x2e
jne 0x5349cd
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00533fc1
add esp, 0x10
test eax, eax
je 0x5349cd
mov edi, dword [ebp - 4]
mov eax, edi
mov ecx, dword [ebp + 8]
sub eax, ecx
cmp eax, 1
jne 0x53438c
cmp byte [ecx], 0x3f
je 0x5343da
cmp eax, 3
jne 0x5343a7
push eax
push 0x660610
push ecx
call 0x730e31
add esp, 0xc
test eax, eax
je 0x5343da
mov ecx, dword [ebp + 8]
mov eax, edi
sub eax, ecx
cmp eax, 8
jne 0x5343c3
push eax
push 0x6602cc
push ecx
call 0x730e31
add esp, 0xc
test eax, eax
je 0x5343da
mov eax, dword [ebx + 0x2f0]
push ebx
call eax
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x5342d1
mov byte [edi], 0
mov ecx, 0x660610
mov eax, dword [ebp + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x534405
test dl, dl
je 0x534401
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x534405
add eax, 2
add ecx, 2
test dl, dl
jne 0x53447d
push cs
mov ss, word [esi + eax]
and byte [esi], dl
push edi
adc al, 0x3a
sbb byte [esi + 0x4c], bh
xor dl, byte [edi - 3]
cmpsd dword [esi], dword es:[edi]
mov fs, word [esi - 0x6b5c2378]
mov esp, 0xdef2cfa1
inc esi
lcall 0x6db6, 0x2821fec7
xchg byte [eax - 0x3d], ah
fsub qword [eax - 0x62]
imul ebp, dword [ecx + 0x64], 0xa6b15601
stosd dword es:[edi], eax
push ds
xor byte [esi - 0x5c], al
xlatb
cmp eax, 0xd464c472
int3
iretd
push esi
push dword [eax + 0x55816656]
jns 0x5348cf
mov edx, 0x37afee3
adc bh, ch
aad 0x72
salc
pop edx
jne 0x534893
mov dh, 0xd6
jns 0x534860
jne 0x53487b
push eax
sbb esp, dword [bp + di - 0x5d]
lea ecx, [si]
mov ah, 6
invalid
and dh, 0x8a
aam 0xfa
push ebp
mov byte [0x38c6f87b], al
adc al, 0xe4
popal
dec eax
jg 0x5348f1
pop ss
dec edi
push ebx
aad 0xb9
loop 0x53484e
loop 0x53484e
scasb al, byte es:[di]
adc edx, esi
xor byte [eax + 0x23d2ae9a], cl
mov al, byte gs:[0xc650c244]
push ss
push 0xffffffffffffffee
pushal
push esp
mov esp, 0x8a145b02
jae 0x5348b9
aaa
loopne 0x53487b
sti
test byte [0xc7f64c0e], dh
sar dword [edi - 0x4a], cl
push cs
dec esp
test bh, 0xd3
jg 0x534875
int 0xce
cmp byte [edx], ah
mov dword [edi - 0x22], edx
add ah, bl
mov ebx, 0xb9fa544a
popal
adc al, 0x16
push ss
cmpsb byte [esi], byte es:[edi]
invalid
cdq
mov cl, 0xee
invalid
push ss
pop ds
ret
push 0x6a
dec si
xor ebp, eax
xlatb
sahf
outsb dx, byte [esi]
mov esi, 0xa71e6077
push ss
mov cs, esi
ret