Function at 0x458be0
Capabilities:
Get file size
Read file via mapping
Terminate process

Disassembly:
sub esp, 0xf0
push ebx
push ebp
mov ebp, dword [esp + 0xfc]
mov eax, edx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [ebp*4 + 0x4d08d4]
mov edx, ecx
mov dword [esp + 0x14], ecx
mov ecx, eax
mov dword [esp + 0x3c], edi
call fcn.00454970
mov ebx, eax
cmp ebx, 0xffffffff
je 0x458ca4
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [esp + 0x34]
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
jne 0x458c48
mov esi, str.CreateFileMapping___failed__error___lu._n
jmp 0x4591d8
push 0
push 0
push 0
lea ecx, [ebp + 5]
lea ecx, [edi + ecx*4]
mov dword [ecx], eax
push 4
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4591d3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, dword [ebp*4 + 0x4d1290]
je 0x458cb3
push str.Corrupted_table._n
push 2
call fcn.0047ba4e
add esp, 4
push eax
call fcn.004548c0
mov edx, dword [esp + 0x2c]
add esp, 8
mov ecx, esi
mov edx, dword [edx]
call fcn.00454ac0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret 4
mov dword [edi + ebp*4 + 8], esi
cmp ebp, 2
je 0x458cc7
test byte [esi + 4], 1
mov byte [esp + 0x12], 1
jne 0x458ccc
mov byte [esp + 0x12], 0
cmp ebp, 1
jne 0x458cdc
mov al, byte [esi + 4]
shr al, 2
and al, 1
mov byte [edi + 0x2a], al
lea eax, [esi + 5]
mov dword [esp + 0x1c], eax
mov al, byte [edi + 0x25]
mov byte [esp + 0x13], al
test al, al
je 0x458cff
xor ebx, ebx
cmp ebp, 1
sete bl
lea ebx, [ebx*2 + 4]
jmp 0x458d04
mov ebx, 1
mov edx, ebp
mov dword [esp + 0x2c], ebx
mov ecx, edi
call fcn.004572b0
cmp byte [esp + 0x13], 0
mov edx, eax
mov dword [esp + 0x24], edx
jne 0x458d22
xor ecx, ecx
jmp 0x458d2c
lea ecx, [ebp - 1]
neg ecx
sbb ecx, ecx
add ecx, 2
lea eax, [ebx + ebx*2]
mov dword [esp + 0x14], ecx
shl eax, 4
xor esi, esi
add eax, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, edx
nop
push ebp
push esi
push 0
push ecx
mov edx, edi
mov ecx, eax
call fcn.00458650
cmp byte [esp + 0x12], 0
mov dword [esp + esi*8 + 0x40], eax
je 0x458d81
mov eax, dword [esp + 0x1c]
mov edx, edi
mov ecx, dword [esp + 0x18]
push ebp
push esi
push 4
push eax
call fcn.00458650
mov dword [esp + esi*8 + 0x44], eax
cmp byte [edi + 0x25], 0
je 0x458d94
cmp byte [edi + 0x29], 0
je 0x458d94
mov ecx, 1
jmp 0x458d96
xor ecx, ecx
movzx eax, byte [edi + 0x23]
inc esi
add dword [esp + 0x18], 0x30
add eax, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
add ecx, eax
mov eax, dword [esp + 0x20]
add eax, 0x30
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp esi, ebx
jl 0x458d50
mov ebp, dword [esp + 0x104]
mov eax, ecx
and eax, 1
add eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
xor esi, esi
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
nop dword [eax + eax]
mov edx, dword [esp + esi*8 + 0x40]
lea ecx, [esp + 0x13]
push ebp
push ecx
add eax, 0xfffffff4
lea ecx, [esp + 0x24]
push eax
call fcn.00458990
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
cmp ebp, 2
jne 0x458e2b
cmp byte [edi + 0x25], 0
mov al, byte [esp + 0x13]
jne 0x458e24
mov byte [edi + 0x138], al
jmp 0x458e2b
mov byte [esi + edi + 0x508], al
cmp byte [esp + 0x12], 0
je 0x458f17
mov edx, dword [esp + esi*8 + 0x44]
lea eax, [esp + 0x13]
push ebp
push eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x28]
call fcn.00458990
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add eax, 0x30
inc esi
mov dword [esp + 0x20], eax
add ecx, 0x30
mov eax, dword [esp + 0x14]
add eax, 0x18
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp esi, ebx
jl 0x458df0
cmp ebp, 1
jne 0x458f2f
cmp byte [edi + 0x2a], 0
jne 0x459073
cmp byte [edi + 0x25], 0
mov ecx, 0x120
mov esi, dword [esp + 0x1c]
mov eax, 0x4b0
cmove eax, ecx
movzx ebp, si
mov ecx, 0x124
mov dword [eax + edi], esi
mov eax, 0x4b4
cmp byte [edi + 0x25], 0
cmove eax, ecx
add eax, edi
xor edx, edx
mov edi, eax
mov eax, esi
sub eax, ebp
inc eax
mov word [edi + edx*8], ax
movzx eax, word [esi]
inc eax
lea ecx, [esi + eax*2]
mov eax, ecx
sub eax, ebp
inc eax
mov word [edi + edx*8 + 2], ax
movzx eax, word [ecx]
inc eax
cmp byte [esp + 0x12], 0
lea esi, [ecx + eax*2]
movzx eax, si
je 0x458f0d
sub eax, ebp
inc eax
mov word [edi + edx*8 + 4], ax
movzx eax, word [esi]
inc eax
lea ecx, [esi + eax*2]
mov eax, ecx
sub eax, ebp
inc eax
mov word [edi + edx*8 + 6], ax
movzx esi, word [ecx]
inc esi
lea esi, [ecx + esi*2]
inc edx
cmp edx, ebx
jl 0x458ec2
jmp 0x459077
cmp ebp, 2
je 0x458e57
mov eax, dword [esp + 0x20]
mov dword [eax], 0
jmp 0x458e5b
cmp ebp, 2
jne 0x459073
cmp byte [edi + 0x25], 0
mov ecx, 0x12c
mov esi, dword [esp + 0x1c]
mov eax, 0x4e4
cmove eax, ecx
mov dword [esp + 0x14], esi
mov edx, 0x130
mov ebp, 0x508
mov dword [eax + edi], esi
mov eax, 0x4e8
mov cl, byte [edi + 0x25]
test cl, cl
cmove eax, edx
add eax, edi
test cl, cl
mov dword [esp + 0x30], eax
mov eax, 0x138
cmove ebp, eax
add ebp, edi
xor edx, edx
mov dword [esp + 0x20], edx
mov al, byte [edx + ebp]
test al, 2
je 0x45905d
mov edi, dword [esp + 0x30]
lea ecx, [edi + edx*8]
mov dword [esp + 0x18], ecx
lea edi, [edi + edx*8]
mov dword [esp + 0x1c], edi
test al, 0x10
jne 0x458ff5
mov eax, dword [esp + 0x14]
movzx edx, ax
mov eax, esi
sub eax, edx
inc eax
mov word [ecx], ax
movzx ecx, byte [esi]
inc esi
add ecx, esi
mov esi, dword [esp + 0x18]
mov eax, ecx
sub eax, edx
inc eax
mov word [esi + 2], ax
mov esi, edi
movzx eax, byte [ecx]
inc eax
add ecx, eax
mov eax, ecx
sub eax, edx
inc eax
mov word [esi + 4], ax
movzx eax, byte [ecx]
add ecx, eax
lea eax, [ecx + 1]
sub eax, edx
mov edx, dword [esp + 0x20]
inc eax
mov word [esi + 6], ax
lea esi, [ecx + 2]
movzx eax, byte [ecx + 1]
add esi, eax
jmp 0x45905d
mov edi, dword [esp + 0x14]
mov eax, esi
and eax, 1
add esi, eax
mov eax, esi
sub eax, edi
add eax, 2
sar eax, 1
mov word [ecx], ax
movzx eax, word [esi]
inc eax
lea ecx, [esi + eax*2]
mov esi, dword [esp + 0x18]
mov eax, ecx
sub eax, edi
add eax, 2
sar eax, 1
mov word [esi + 2], ax
movzx eax, word [ecx]
mov esi, dword [esp + 0x1c]
lea ecx, [ecx + eax*2]
add ecx, 2
mov eax, ecx
sub eax, edi
add eax, 2
sar eax, 1
mov word [esi + 4], ax
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
mov eax, ecx
sub eax, edi
add eax, 2
sar eax, 1
mov word [esi + 6], ax
movzx eax, word [ecx]
lea esi, [eax + 1]
lea esi, [ecx + esi*2]
inc edx
mov dword [esp + 0x20], edx
cmp edx, ebx
jl 0x458f83
mov eax, esi
and eax, 1
add esi, eax
jmp 0x459077
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x7c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov bl, byte [esp + 0x12]
nop dword [eax + eax]
mov eax, dword [ebp]
mov dword [eax], esi
add esi, dword [ecx - 0xc]
mov dword [esp + 0x30], esi
test bl, bl
je 0x4590aa
mov eax, dword [edx]
mov dword [eax], esi
mov esi, dword [ecx]
add esi, dword [esp + 0x30]
add ebp, 0x30
add edx, 0x30
add ecx, 0x18
sub dword [esp + 0x14], 1
jne 0x459090
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x80]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov bl, byte [esp + 0x12]
mov eax, dword [edi]
mov dword [eax + 4], esi
add esi, dword [ecx - 0xc]
mov dword [esp + 0x30], esi
test bl, bl
je 0x4590f0
mov eax, dword [edx]
mov dword [eax + 4], esi
mov esi, dword [ecx]
add esi, dword [esp + 0x30]
add edi, 0x30
add edx, 0x30
add ecx, 0x18
sub dword [esp + 0x14], 1
jne 0x4590d5
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x84]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebp]
lea ecx, [esi + 0x3f]
and ecx, 0xffffffc0
cmp byte [esp + 0x12], 0
mov dword [eax + 8], ecx
mov eax, dword [edx - 0xc]
lea esi, [eax + ecx]
je 0x45913f
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x3f]
mov esi, dword [edx]
and ecx, 0xffffffc0
add esi, ecx
mov eax, dword [eax]
mov dword [eax + 8], ecx
add dword [esp + 0x28], 0x30
add ebp, 0x30
add edx, 0x18
sub ebx, 1
jne 0x459113
cmp dword [esp + 0x104], 1
jne 0x4591c4
cmp byte [edi + 0x25], bl
je 0x4591c4
movzx ebx, byte [edi + 0x23]
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
xor ecx, ecx
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
test ebx, ebx
je 0x45919c
mov edi, dword [esp + 0x24]
nop dword [eax]
movzx eax, byte [edi + ecx + 0x20]
add esi, dword [eax*8 + 0x4d8af0]
adc edx, dword [eax*8 + 0x4d8af4]
inc ecx
cmp ecx, ebx
jl 0x459180
mov edi, dword [esp + 0x3c]
cmp esi, dword [edi]
jne 0x4591bc
cmp edx, dword [edi + 4]
jne 0x4591bc
xor al, al
mov byte [edi + 0x50c], al
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret 4
mov al, 1
mov byte [edi + 0x50c], al
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xf0
ret 4
mov esi, str.MapViewOfFile___failed__error___lu._n
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov edi, eax
call fcn.0047ba4e
add esp, 4
push edi
push esi
push eax
call fcn.004548c0
add esp, 0xc
push dword [esp + 0x14]
push dword [esp + 0x1c]
push str.Could_not_map__s_s_into_memory._n
push 2
call fcn.0047ba4e
add esp, 4
push eax
call fcn.004548c0
add esp, 0x10
push 1
call fcn.0047b843
int3