Function at 0x414140
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x30], 0
lea eax, [esi + esi]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x11c], eax
add eax, ebx
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], eax
add eax, 0xfffffffe
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x118], eax
test edi, edi
je 0x4478b7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
test ecx, 0xe20f5a6f
jne 0x4148c4
test edi, edi
je 0x4149b3
test ebx, ebx
je 0x4149b3
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x1c]
je 0x4478f4
test eax, eax
js 0x4148ce
test edx, edx
js 0x4148d8
test esi, esi
js 0x4149a9
cmp esi, edx
jg 0x4149a9
bnd jg 0x4149a9
mov eax, dword [edi]
cmp eax, 0x50435245
jne 0x447901
test byte [edi + 0xc], 2
je 0x4148e2
mov ebx, dword [edi + 8]
test ebx, 0x800
je 0x4148ec
mov eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xb0], eax
test ecx, 0x8000000
jne 0x4148f3
test ecx, 0x8000
jne 0x4148fd
xor eax, eax
cmp dword [ebp - 8], 0
mov dword [ebp - 0x74], eax
je 0x414280
test ecx, 0x2000
je 0x447915
movzx eax, word [edi + 0x22]
mov esi, dword [edi + 0x30]
movzx edx, word [edi + 0x24]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x10]
lea eax, [edi + eax*2]
mov dword [ebp - 0xd0], eax
test esi, esi
movzx eax, word [edi + 0x26]
mov esi, dword [ebp + 0x10]
inc dword [ebp + 0x47b70ff6]
mov esi, dword es:[ebp + 0x10]
mov dword [ebp - 0xe0], eax
mov eax, 0x989680
mov ecx, eax
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0x54], 0
je 0x414312
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
test cl, 1
je 0x4142e8
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 4]
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 0x10]
test cl, 2
jne 0x447991
test cl, 0x10
jne 0x4479a2
test cl, 4
jne 0x4479b6
test cl, 8
jne 0x4479ca
mov ecx, dword [ebp - 0xf8]
test dword [edi + 0xc], 0x2000
jne 0x4479d8
test dword [edi + 0xc], 0x4000
jne 0x4479ef
cmp dword [ebp - 0xc], 0
jne 0x414339
mov dword [ebp - 0xc], 0x4a4710
mov ecx, dword [ebp + 0x14]
mov eax, ebx
or eax, ecx
test al, 0x10
jne 0x447a05
mov dword [ebp - 0x20], 0
test dword [edi + 0xc], 0x100
jne 0x447a11
mov dword [ebp - 0x24], 0
test ebx, 0x40000
jne 0x447a1d
mov dword [ebp - 0x34], 0
movzx eax, word [edi + 0x26]
imul edx, eax
movzx eax, word [edi + 0x22]
mov dword [ebp - 0x68], esi
add edx, eax
lea eax, [edi + edx*2]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x88], edx
lea eax, [edx + eax*2]
mov dword [ebp - 0x84], eax
mov dword [ebp + 0x10], eax
test bl, 0x20
jne 0x414907
xor eax, eax
mov dword [ebp - 0xa4], eax
test ebx, 0x20000000
jne 0x414911
xor eax, eax
mov dword [ebp - 0xa8], eax
test ebx, 0x2000000
jne 0x41491b
xor eax, eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xd4], 0
test cl, cl
js 0x414925
xor eax, eax
mov dword [ebp - 0xb8], eax
test ecx, 0x100
jne 0x41492f
xor eax, eax
mov dword [ebp - 0xb4], eax
test ecx, 0x400
jne 0x414939
xor eax, eax
mov dword [ebp - 0xa0], eax
test ecx, 0x10000000
jne 0x414943
xor eax, eax
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
test esi, 0x1000
jne 0x41494d
xor eax, eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc4], eax
lea edx, [eax + 0x100]
add eax, 0x340
mov dword [ebp - 0xbc], eax
mov eax, ecx
mov dword [ebp - 0xc0], edx
and eax, 0x1800000
jne 0x447a29
test ebx, 0x1800000
jne 0x447a4e
mov dword [ebp - 0x94], 1
test ecx, 0x700000
jne 0x414957
and ebx, 0x700000
jne 0x447a61
mov dword [ebp - 0xe8], 2
cmp dword [ebp - 0x74], 0
jne 0x447af4
mov eax, 0x55555556
imul dword [ebp + 0x1c]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ebx, [eax + eax*2]
mov eax, 0x55555556
lea ecx, [ebx + ebx]
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
movzx eax, word [edi + 0x20]
test ax, ax
jne 0x447b0a
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xf4], esi
lea ecx, [ebx + ebx]
mov dword [ebp - 0xf0], ebx
mov eax, 0x55555556
mov dword [ebp - 0x6c], 0
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
invalid
invalid