Function at 0x52fe50
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x6c]
cmp eax, 0xfffffffe
push edi
je 0x52feaa
cmp eax, 0xfffffffd
je 0x52feaa
mov edi, dword [esi + 4]
cmp byte [edi + 0x560c], 0
jne 0x52feaa
cmp dword [edi + 0x5604], 0
jg 0x52feaa
cmp dword [edi + 0x5600], 0
jge 0x52feaa
cmp byte [edi + 0x55fc], 0
jne 0x52feaa
cmp byte [esi + 0x70], 0
jne 0x52feaa
mov ecx, dword [esi]
call fcn.004539d0
test al, al
je 0x52feb5
cmp dword [esi + 0x24], 0x19
je 0x52fefa
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004538f0
test al, al
je 0x52fed8
mov edi, dword [edi + 0x160]
call fcn.004296a0
test al, al
jne 0x52fefa
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00453740
test al, al
jne 0x52feaa
mov eax, dword [edi + 0x557c]
jmp 0x79bc66
mov ecx, dword [esi]
call fcn.00453890
test al, al
je 0x52ff11
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x559c], 0
jg 0x52feaa
mov edx, dword [esi + 4]
mov eax, 1
mov byte [edx + 0x560c], al
mov ecx, dword [esi]
lea edi, [esp + 0x18]
mov ebx, esi
mov dword [ecx + 0x888], eax
call fcn.005320b0
mov eax, dword [esp + 0x20]
mov edi, dword [esi + 4]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, edi
call fcn.004139e0
test al, al
jne 0x52ff67
call fcn.0040dea0
mov edi, dword [esi]
mov ecx, edi
call fcn.004538f0
test al, al
je 0x52ffc0
mov ebx, dword [esi + 4]
mov edx, ebx
call fcn.004138d0
test al, al
jne 0x52ffc0
mov edx, dword [esi + 0x1c]
fld dword [esi + 0x30]
push edx
xor edi, edi
call fcn.006397d0
fld dword [esi + 0x2c]
fadd qword [0x679a38]
mov dword [esp + 0x10], eax
call fcn.006397d0
mov esi, eax
mov eax, dword [esp + 0x10]
call fcn.0041c530
mov ecx, dword [ebx + 0x160]
call fcn.00429980
mov esi, dword [ebp + 8]
jmp 0x53011a
mov eax, dword [edi + 0x7f8]
test eax, eax
jne 0x53007e
mov eax, dword [esi + 4]
mov edi, dword [eax + 0x5550]
cmp edi, 0x32
jg 0x53007e
cmp edi, 9
je 0x530074
cmp edi, 0x13
je 0x530074
cmp edi, 0x1d
je 0x530074
cmp edi, 0x27
je 0x530074
cmp edi, 0x31
je 0x530074
mov eax, dword [esi]
call fcn.00454170
cmp edi, 0x32
jne 0x53001e
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 0x15
mov edi, eax
jmp 0x53011a
test al, al
jne 0x530115
cmp edi, 4
jne 0x530035
mov edi, 9
jmp 0x53011a
cmp edi, 0xe
jne 0x530044
mov edi, 0xa
jmp 0x53011a
cmp edi, 0x18
jne 0x530053
mov edi, 0xb
jmp 0x53011a
cmp edi, 0x22
jne 0x530062
mov edi, 0xe
jmp 0x53011a
sub edi, 0x2c
neg edi
sbb edi, edi
and edi, 0xfffffffa
add edi, 0xd
jmp 0x53011a
mov edi, 0xf
jmp 0x53011a
mov ebx, dword [esi + 4]
mov eax, ebx
call fcn.004139e0
test al, al
je 0x53009a
mov ecx, ebx
xor edi, edi
call fcn.0040c3e0
jmp 0x53011a
mov eax, ebx
call fcn.00413a10
test al, al
je 0x5300e4
mov ecx, ebx
xor edi, edi
call fcn.0040c3e0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
lea esi, [edi + 4]
call fcn.00453630
mov esi, dword [esp + 0x14]
lea ebx, [edi + 0xa]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push 3
push 4
push edx
push esi
call fcn.0040cb10
add esi, 5
sub ebx, 1
jne 0x5300c2
mov esi, dword [ebp + 8]
jmp 0x53011a
mov eax, dword [esi]
mov eax, dword [eax + 0x7f8]
test eax, eax
je 0x530115
mov edi, dword [esi]
mov ecx, edi
call fcn.00454120
test al, al
jne 0x530115
mov eax, edi
call fcn.00455c20
mov edi, eax
sub edi, 1
neg edi
sbb edi, edi
and edi, 0xfffffff2
add edi, 0x16
jmp 0x53011a
mov edi, 0x12
cmp dword [esi + 0x24], 0x19
mov dword [esp + 0xc], 3
jne 0x530130
mov dword [esp + 0xc], 6
test edi, edi
je 0x53015d
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov esi, 4
call fcn.00453630
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [ebx + 4]
push edi
push edx
push eax
call fcn.0040cb10
mov esi, ebx
pop edi
mov byte [esi + 0x70], 1
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4