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
mov dword [ebp - 0xec], eax
test esi, esi
je 0x414576
movzx eax, word [edi + 0x1e]
lea ecx, [esi + ebx*4]
shl eax, 2
mov edx, ecx
sub edx, eax
lea eax, [esi + 8]
cmp edx, eax
jb 0x41495e
sub ecx, 4
cmp ecx, edx
jae 0x414780
mov dword [esi + 4], 0xffffffff
mov eax, dword [ebp - 0xf4]
mov dword [eax], 0xffffffff
cmp dword [ebp - 0x20], 0
jne 0x4147ea
mov eax, dword [edi + 0xc]
test al, 0x10
jne 0x4147cb
cmp dword [ebp - 0x24], 0
jne 0x4147ea
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4147ea
test byte [eax + 4], 1
mov edx, dword [ebp - 0xc0]
mov ecx, dword [ebp - 8]
jne 0x41476d
mov eax, dword [edi + 0xc]
test al, 0x40
jne 0x4147f8
mov ecx, dword [ebp - 0xe8]
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 4]
lea ecx, [ecx]
cmp dword [ebp - 0x34], 0
mov ebx, dword [ebp + 0x10]
jne 0x447c2a
mov eax, ebx
mov esi, dword [edi + 8]
or esi, dword [ebp + 0x14]
and esi, 0x4000000
jne 0x41496f
cmp dword [ebp - 0x2c], esi
jne 0x414798
cmp dword [ebp - 0x24], esi
jne 0x447d89
mov edx, dword [ebp - 4]
cmp dword [ebp - 0x38], esi
jne 0x414728
mov dword [ebp + 0x10], ebx
test esi, esi
jne 0x414644
cmp dword [ebp - 0x74], esi
jne 0x414644
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x414637
test byte [ecx + 4], 2
je 0x414637
mov eax, ebx
sub eax, edx
sar eax, 1
cmp eax, dword [ecx + 0x28]
jb 0x414874
cmp dword [ebp - 0x104], 0
jne 0x41481f
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x100]
push 0
push 0
push eax
push 2
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x78], edx
push edx
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0xd8], 0
call int.004149c0
mov ecx, dword [ebp - 4]
add esp, 0x14
cmp dword [ebp - 0x98], 0
mov esi, eax
jne 0x447f83
test esi, esi
jle 0x447f9e
cmp esi, 1
jne 0x4480e9
cmp dword [ebp - 0x30], 0
mov ebx, dword [ebp - 0x1c]
jne 0x44813b
test dword [ebp - 0x6c], 0x10000
mov esi, dword [ebp - 0x70]
jne 0x448181
mov eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
movzx edi, word [edi + 0x1e]
mov eax, esi
mov ebx, dword [ebp + 0x18]
cdq
sub eax, edx
sar eax, 1
cmp eax, edi
jle 0x448190
cmp dword [ebp + 0x1c], 2
jl 0x4149a2
mov eax, dword [ebp - 0x80]
sub eax, dword [ebp - 0x88]
sar eax, 1
invalid