Function at 0x505526
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov esi, 0x672ee0
xor eax, eax
push ebp
push 0x505ca7
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004ff7c4
mov byte [ebp - 0x45], al
cmp byte [ebp - 0x45], 0
je 0x505c61
mov bl, 1
call fcn.00539564
test eax, eax
je 0x504d46
call fcn.00539564
mov bl, byte [eax + 0x14e]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp bl, byte [eax + 0x1c4]
je 0x504d74
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x164], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x170], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x1c4], bl
call fcn.00539564
test eax, eax
je 0x505637
call fcn.00539564
call fcn.005c208c
test al, al
jne 0x504de7
mov eax, dword [0x66f1e0]
mov eax, dword [eax]
cmp dword [eax + 0x18], 1
jle 0x504de7
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x66f1e0]
mov eax, dword [eax]
mov edi, dword [eax + 0x18]
dec edi
cmp edi, 0
jl 0x504e07
mov eax, dword [0x66f1e0]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + edi*4]
add eax, 0x19c
mov edx, dword [eax + 0x20]
add dword [ebp - 0x20], edx
mov edx, dword [eax + 0x24]
add dword [ebp - 0x24], edx
mov eax, dword [eax + 0x28]
add dword [ebp - 0x28], eax
dec edi
cmp edi, 0xffffffff
jne 0x504dbb
jmp 0x504e07
call fcn.00539564
mov edx, dword [eax + 0xb8]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0xbc]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0xc0]
mov dword [ebp - 0x28], eax
call fcn.00539564
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
add eax, 0x258
mov dword [ebp - 0x50], eax
mov bl, 0x14
mov eax, dword [esi]
mov eax, dword [eax + 0x140]
mov edx, dword [0x66fc50]
not eax
and eax, dword [edx + 0x16]
mov edx, ebx
cmp dl, 0x1f
ja 0x504e3c
and edx, 0x7f
bt eax, edx
jae 0x50562b
lea eax, [ebp - 0xc]
call fcn.00403274
xor eax, eax
mov al, bl
cmp eax, 0x12
ja case.0x504e57.4
jmp dword [eax*4 + 0x504e5e]
mov eax, dword [ebp - 0x4c]
mov al, byte [eax + 0x14e]
dec eax
sub al, 2
jae 0x504f0f
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c]
call fcn.00563b70
mov eax, dword [eax + 8]
inc eax
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x4d4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0
lea edx, [ebp - 0x9c]
mov eax, dword [0x66ee80]
mov eax, dword [eax]
mov ecx, 1
call fcn.00655a28
jmp case.0x504e57.4
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x417], 0
je 0x504f40
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x1e4]
mov edx, dword [ebp - 0x4c]
mov edx, dword [edx + 0x13c]
cmp eax, dword [edx + 0x18]
jl 0x504f40
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x1e4]
mov dword [ebp - 0x30], eax
jmp 0x504f5b
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x13c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x1e4], edx
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x40e], 0
jne 0x504f7c
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x40d], 0
jne 0x504fa9
cmp dword [ebp - 0x30], 0x3e8
jle 0x504fa9
mov edx, 0x3e8
mov eax, dword [ebp - 0x30]
call fcn.00653540
lea edx, [ebp - 0xa0]
call fcn.00655ce4
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x10]
mov ecx, 0x505cc0
call fcn.00403568
jmp 0x504fb4
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x30]
call fcn.00655ce4
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x81c], 0
jne 0x504fd5
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c]
call fcn.00563b70
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], eax
jmp 0x504ff5
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x4c]
mov edx, dword [edx + 0x13c]
mov edx, dword [edx + 0x1c]
mov eax, dword [edx + eax*4]
call fcn.0055d628
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
inc eax
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0xb
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x4d4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 0
lea edx, [ebp - 0xc0]
mov eax, dword [0x66f2b0]
mov eax, dword [eax]
mov ecx, 3
call fcn.00655a28
jmp case.0x504e57.4
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov edx, dword [ebp - 0x4c]
mov edx, dword [edx + 0xb0]
mov edx, dword [edx + 0x1c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x54]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x1c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov al, byte [eax + 0x14e]
dec eax
sub al, 2
jae 0x505147
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x54]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x1c]
mov edx, dword [edx + eax*4]
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x30]
call fcn.0055d7cc
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0x8c]
dec edi
cmp edi, 0
jl 0x5050fd
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x13c]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + edi*4]
mov dl, byte [0x505cc4]
call fcn.0055d730
add dword [ebp - 0x38], eax
dec edi
cmp edi, 0xffffffff
jne 0x5050da
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x58]
sub eax, dword [edx + 0x28]
inc eax
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0
lea edx, [ebp - 0x9c]
mov eax, dword [0x66f9a8]
mov eax, dword [eax]
mov ecx, 1
call fcn.00655a28
jmp case.0x504e57.4
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x3c]
add dword [ebp - 0x3c], edx
mov eax, dword [eax + 0x2c]
cmp dword [eax + 0x2c], 0
jne 0x505156
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x3c]
call fcn.006283c8
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0xd4], 0xb
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x54]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x1c]
mov edx, dword [edx + eax*4]
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x30]
call fcn.0055d7cc
inc eax
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x58]
sub eax, dword [edx + 0x28]
inc eax
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0
lea edx, [ebp - 0xd8]
mov eax, dword [0x66fdb8]
mov eax, dword [eax]
mov ecx, 2
call fcn.00655a28
jmp case.0x504e57.4
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x38], 0
je case.0x504e57.4
lea eax, [ebp - 0xc]
mov edx, dword [0x66fe08]
mov edx, dword [edx]
call fcn.00403438
jmp case.0x504e57.4
lea eax, [ebp - 0xc]
xor edx, edx
mov dl, byte [0x672f41]
mov ecx, dword [0x66f928]
mov edx, dword [ecx + edx*4]
call fcn.00403438
jmp case.0x504e57.4
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x3a4], 0x80000000
je case.0x504e57.4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x3a4]
call fcn.0062a1f4
jmp case.0x504e57.4
mov eax, dword [0x66e8a8]
mov ax, word [eax + 0xa9]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov word [edx + 0x270], ax
mov eax, dword [ebp - 0x4c]
mov al, byte [eax + 0x14d]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov byte [edx + 0x272], al
mov eax, dword [ebp - 0x4c]
mov al, byte [eax + 0x7dc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov byte [edx + 0x273], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x26c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x274], eax
jmp case.0x504e57.4
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x20]
call fcn.00619c40
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xc]
mov eax, dword [0x66ff6c]
mov eax, dword [eax]
call fcn.00655b64
jmp case.0x504e57.4
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x24]
call fcn.00619c40
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xc]
mov eax, dword [0x66ff6c]
mov eax, dword [eax]
call fcn.00655b64
jmp case.0x504e57.4
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x28]
call fcn.00619c40
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xc]
mov eax, dword [0x66ec3c]
mov eax, dword [eax]
call fcn.00655b64
jmp case.0x504e57.4
call fcn.0064e78c
mov dword [ebp - 4], eax
mov eax, dword [0x66f1e0]
mov eax, dword [eax]
cmp dword [eax + 0x18], 1
jle 0x505356
mov edx, dword [0x66f1e0]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.0064e950
jmp 0x505365
call fcn.00539564
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0064e9dc
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x18]
dec edi
cmp edi, 0
jl 0x5053d7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x42b], 0
jne 0x5053d1
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x441], 0
jne 0x5053d1
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x42a], 0
jne 0x5053d1
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x164], 0
je 0x5053d1
cmp dword [ebp - 0x2c], 0
jge 0x5053bd
inc dword [ebp - 0x2c]
push 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x164]
push eax
call sub.kernel32.dll_GetFileSize
add dword [ebp - 0x2c], eax
dec edi
cmp edi, 0xffffffff
jne 0x505378
cmp dword [ebp - 0x2c], 0
jl 0x505400
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x2c]
call fcn.00619c40
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xc]
mov eax, dword [0x66fd80]
mov eax, dword [eax]
call fcn.00655b64
mov eax, dword [ebp - 4]
call fcn.0064edac
jmp case.0x504e57.4
lea eax, [ebp - 0xc]
push eax
fld xword [0x505cc8]
mov eax, dword [ebp - 0x4c]
fmul qword [eax + 0x8fc]
call fcn.00402590
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0xd4], 0
fld xword [0x505cc8]
mov eax, dword [ebp - 0x4c]
fmul qword [eax + 0x8fc]
call fcn.00402554
fmul dword [0x505cd4]
mov eax, dword [ebp - 0x4c]
fsubr qword [eax + 0x8fc]
fld xword [0x505cd8]
fmulp st(1)
call fcn.00402590
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0
fld xword [0x505cd8]
mov eax, dword [ebp - 0x4c]
fmul qword [eax + 0x8fc]
call fcn.00402554
fmul dword [0x505ce4]
mov eax, dword [ebp - 0x4c]
fsubr qword [eax + 0x8fc]
fld xword [0x505ce8]
fmulp st(1)
call fcn.00402590
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0
lea edx, [ebp - 0xd8]
mov eax, 0x505cf4
mov ecx, 2
call fcn.00655a28
jmp case.0x504e57.4
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x904], 0
jle case.0x504e57.4
mov eax, dword [ebp - 0x4c]
fld qword [eax + 0x8fc]
fcomp dword [0x505d04]
fnstsw ax
sahf
jb case.0x504e57.4
mov eax, dword [ebp - 0x4c]
fild dword [eax + 0x904]
call fcn.00402554
fmul dword [0x505ce4]
mov eax, dword [ebp - 0x4c]
fdiv qword [eax + 0x8fc]
call fcn.00402590
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [0x66fad0]
mov eax, dword [eax]
call fcn.00655c8c
jmp case.0x504e57.4
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x90c], 0
jle case.0x504e57.4
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x918], 2
jne 0x50554e
mov eax, dword [0x66fbd4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x505558
mov eax, dword [0x66f334]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x914]
call fcn.00653548
mov edi, eax
cmp edi, 0x7fffffff
jne 0x505579
mov eax, dword [ebp - 0x4c]
mov edi, dword [eax + 0x90c]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x9c], edi
mov byte [ebp - 0x98], 0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x90c]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0
lea edx, [ebp - 0x9c]
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.00655a28
jmp case.0x504e57.4
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax + 0x148]
mov eax, dword [0x66f5bc]
mov eax, dword [eax]
call fcn.00655c8c
xor eax, eax
mov al, bl
lea eax, [eax + eax*2]
mov edx, dword [esi]
lea edi, [edx + eax*4 + 0x15c]
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004032c8
cmp dword [ebp - 0xc], 0
je 0x50562b
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 0xc]
call fcn.00654c74
mov edx, dword [ebp - 0xdc]
mov eax, dword [esi]
mov eax, dword [eax + 0x120]
call fcn.006484e4
mov dword [edi + 4], eax
mov edx, dword [edi + 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x124]
add eax, eax
add edx, eax
mov eax, dword [edi + 8]
call fcn.00653540
mov dword [edi + 8], eax
dec ebx
cmp bl, 0xff
jne 0x504e1c
jmp 0x505654
xor ebx, ebx
xor eax, eax
mov al, bl
lea eax, [eax + eax*2]
mov edx, dword [esi]
lea eax, [edx + eax*4 + 0x15c]
call fcn.00403274
inc ebx
cmp bl, 0x15
jne 0x505639
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x1c8
call fcn.00403274
call fcn.00539564
test eax, eax
je 0x5058c3
call fcn.00539564
mov ebx, eax
cmp dword [ebx + 0x990], 0xfffffffe
jne 0x50568f
mov eax, dword [ebx + 0x9a4]
call fcn.00547ce4
dec eax
jg 0x5056a9
cmp dword [ebx + 0x990], 0
jl 0x5058c3
cmp dword [ebx + 0x9a0], 2
jle 0x5058c3
mov eax, ebx
call fcn.005fbefc
test al, al
jne 0x5058c3
cmp dword [ebx + 0x990], 0
jl 0x50570a
push 0x505d10
lea eax, [ebp - 0xa0]
mov edx, dword [ebx + 0x9a0]
and edx, 0x80000003
jns 0x5056df
dec edx
or edx, 0xfffffffc
inc edx
mov edx, dword [edx*4 + 0x669250]
call fcn.00403438
push dword [ebp - 0xa0]
push 0x505d20
push 0x505d20
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004035dc
jmp 0x505712
lea eax, [ebp - 0x14]
call fcn.00403274
mov eax, dword [ebx + 0x9a4]
call fcn.00547ce4
mov edi, eax
cmp edi, 1
jg 0x50576f
cmp dword [ebx + 0x81c], 0
jne 0x505739
mov eax, dword [0x66f828]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x505743
mov eax, dword [0x67038c]
mov eax, dword [eax]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xa0]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00655b64
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x1c8
call fcn.004032c8
jmp 0x50585b
cmp dword [ebx + 0x81c], 0
jne 0x505792
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x1c8
mov edx, dword [0x66eb30]
mov edx, dword [edx]
call fcn.00403438
jmp 0x5057aa
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x1c8
mov edx, dword [0x66f674]
mov edx, dword [edx]
call fcn.00403438
cmp dword [ebx + 0x990], 0xfffffffe
jne 0x5057d2
lea ecx, [ebp - 0x18]
mov eax, 0x505d24
mov edx, 1
call fcn.00655c8c
lea eax, [ebp - 0x1c]
mov edx, 0x505d34
call fcn.0040330c
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], 0xb
lea edx, [ebp - 0xe0]
mov eax, edi
call fcn.00619c40
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 0xb
lea edx, [ebp - 0xc0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c8]
mov ecx, 3
call fcn.00655a28
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x1c8
call fcn.004032c8
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xd8], 2
mov byte [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 3
mov byte [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 4
mov byte [ebp - 0xc4], 0
lea edx, [ebp - 0xd8]
mov eax, 0x505d38
mov ecx, 2
call fcn.00655a28
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x1c8
call fcn.00403524
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0x1c8], 0
jne 0x5058f6
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
test eax, eax
je 0x505c56
cmp byte [eax + 0x3a], 0
je 0x505c56
call fcn.0063fe74
jmp 0x505c56
mov eax, dword [esi]
cmp dword [eax + 0x144], 0
jne 0x50599f
mov edx, dword [0x4fc7a8]
mov eax, dword [esi]
call fcn.00641508
mov ebx, eax
mov eax, dword [esi]
mov dword [eax + 0x144], ebx
mov byte [ebx + 0x114], 1
mov eax, ebx
call fcn.0063fe74
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
mov edx, dword [0x6140ac]
call fcn.00641508
mov ebx, eax
mov eax, dword [esi]
mov dword [eax + 0x148], ebx
mov dword [ebx + 0x180], 1
mov byte [ebx + 0x171], 0
mov dword [ebx + 0x15c], 0xc0ffff
mov eax, dword [esi]
mov dword [ebx + 0x188], eax
mov dword [ebx + 0x184], 0x4fe160
mov byte [ebx + 0x176], 1
mov eax, dword [esi]
mov dword [ebx + 0x1a0], eax
mov dword [ebx + 0x19c], 0x4fe224
mov eax, dword [esi]
mov dword [ebx + 0x1a8], eax
mov dword [ebx + 0x1a4], 0x4fe2f0
mov eax, dword [esi]
mov eax, dword [eax + 0x148]
mov byte [eax + 0x175], 1
lea edx, [ebp - 0xdc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c8]
call fcn.00654c74
mov edx, dword [ebp - 0xdc]
mov eax, dword [esi]
mov eax, dword [eax + 0x148]
add eax, 0x144
call fcn.004038bc
mov eax, 0x80
call fcn.0064bd24
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x148]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
call fcn.00615ddc
mov eax, dword [esi]
mov eax, dword [eax + 0x148]
mov eax, dword [eax + 0x150]
cmp dword [eax + 0x18], 1
je 0x505a1e
mov eax, dword [0x66f5a0]
mov eax, dword [eax]
add eax, eax
add dword [ebp - 0x40], eax
jmp 0x5059ea
mov eax, dword [0x66f5a0]
mov eax, dword [eax]
add dword [ebp - 0x40], eax
mov eax, dword [esi]
cmp dword [eax + 0x28], 0
setg al
and eax, 0x7f
mov edx, dword [0x66f238]
imul dword [edx]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
call fcn.0063f604
mov ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
call fcn.0063f7b4
cmp ebx, eax
setl al
and eax, 0x7f
mov edx, dword [0x66f238]
imul dword [edx]
mov edx, dword [esi]
mov edi, dword [edx + 0x30]
sub edi, eax
mov eax, dword [esi]
call fcn.004fd16c
xor ebx, ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x140]
mov edx, dword [0x66fc50]
not eax
and eax, dword [edx + 0x16]
mov edx, ebx
cmp dl, 0x1f
ja 0x505a92
and edx, 0x7f
bt eax, edx
jae 0x505ab2
lea ecx, [ebp - 0x6c]
mov edx, ebx
mov eax, dword [esi]
call fcn.004ff66c
cmp bl, 0xe
jae 0x505aad
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x44], eax
jmp 0x505ab2
mov edi, dword [ebp - 0x6c]
jmp 0x505ab8
inc ebx
cmp bl, 0x15
jne 0x505a72
mov eax, edi
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
jge 0x505bb6
mov bl, 0x14
mov eax, dword [esi]
mov eax, dword [eax + 0x140]
mov edx, dword [0x66fc50]
not eax
and eax, dword [edx + 0x16]
mov edx, ebx
cmp dl, 0x1f
ja 0x505ae8
and edx, 0x7f
bt eax, edx
jae 0x505b06
lea ecx, [ebp - 0x7c]
mov edx, ebx
mov eax, dword [esi]
call fcn.004ff66c
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x44], eax
mov eax, edi
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
jge 0x505b0c
dec ebx
cmp bl, 0xff
jne 0x505ac8
mov eax, edi
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
jge 0x505b65
mov bl, 0xe
mov eax, dword [esi]
mov eax, dword [eax + 0x140]
mov edx, dword [0x66fc50]
not eax
and eax, dword [edx + 0x16]
mov edx, ebx
cmp dl, 0x1f
ja 0x505b38
and edx, 0x7f
bt eax, edx
jae 0x505b5f
lea ecx, [ebp - 0x8c]
mov edx, ebx
mov eax, dword [esi]
call fcn.004ff66c
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
jl 0x505b5f
mov edi, dword [ebp - 0x8c]
jmp 0x505b65
inc ebx
cmp bl, 0x15
jne 0x505b18
mov eax, edi
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
jge 0x505bb0
mov eax, dword [esi]
cmp dword [eax + 0x28], 0
setg al
and eax, 0x7f
mov edx, dword [0x66f238]
imul dword [edx]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
call fcn.0063f604
mov ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
call fcn.0063f7b4
cmp ebx, eax
setl al
and eax, 0x7f
mov edx, dword [0x66f238]
imul dword [edx]
mov edx, dword [esi]
mov edi, dword [edx + 0x30]
sub edi, eax
sub edi, dword [ebp - 0x44]
mov dword [ebp - 0x40], edi
mov eax, dword [0x66f5a0]
mov edx, dword [ebp - 0x40]
sub edx, dword [eax]
push edx
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
mov edx, dword [0x66f5a0]
sub eax, dword [edx]
push eax
mov ecx, dword [0x66f238]
mov ecx, dword [ecx]
mov edx, dword [0x66f238]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x148]
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [esi]
mov ebx, dword [eax + 0x148]
mov eax, ebx
call fcn.00615cfc
mov edx, dword [ebx + 0x34]
sub edx, eax
sar edx, 1
jns 0x505c07
adc edx, 0
mov eax, dword [esi]
mov edi, dword [eax + 0x148]
mov dword [edi + 0x148], edx
mov byte [edi + 0x175], 0
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
mov bx, 0xffe9
call fcn.00403254
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
call fcn.0063fe7c
mov eax, dword [esi]
mov bx, 0xffe9
call fcn.00403254
mov dl, byte [ebp - 0x45]
mov eax, dword [esi]
call fcn.0063f9cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505cae
lea eax, [ebp - 0xe0]
call fcn.00403274
lea eax, [ebp - 0xdc]
call fcn.00403880
lea eax, [ebp - 0xa0]
call fcn.00403274
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00403298
ret