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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx*4 + 0x48c2a0]
mov edx, ecx
mov dword [ebp - 0x34], ecx
mov ecx, eax
mov dword [ebp - 0x30], edi
call fcn.00472780
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x46dbdd
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 0x20]
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
jne 0x46db33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0042db9f
mov ecx, str.CreateFileMapping___failed__error___lu._n
jmp 0x46e1da
push 0
push 0
push 0
lea ecx, [ebx + 5]
mov dword [edi + ecx*4], eax
push 4
push eax
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x46e1c6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, dword [ebx*4 + 0x48c8f0]
je 0x46dbe6
push str.Corrupted_table._n
push 2
call fcn.0042db9f
add esp, 4
push eax
call fcn.00420900
mov eax, dword [ebp - 0x28]
add esp, 8
mov ebx, dword [edi + eax*4]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46dbb5
call edi
push 2
mov esi, eax
call fcn.0042db9f
add esp, 4
push esi
push str.unmap_failed__error_code__lu_n
push eax
call fcn.00420900
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46dbdd
call edi
push 2
mov esi, eax
call fcn.0042db9f
add esp, 4
push esi
push str.CloseHandle_failed__error_code__lu_n
push eax
call fcn.00420900
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + ebx*4 + 8], esi
lea eax, [esi + 4]
cmp ebx, 2
je 0x46dbfb
test byte [eax], 1
mov byte [ebp - 5], 1
jne 0x46dbff
mov byte [ebp - 5], 0
cmp ebx, 1
jne 0x46dc0e
mov al, byte [eax]
shr al, 2
and al, bl
mov byte [edi + 0x2a], al
add esi, 5
cmp byte [edi + 0x25], 0
je 0x46dc46
xor eax, eax
mov edx, ebx
cmp ebx, 1
mov ecx, edi
sete al
lea eax, [eax*2 + 4]
mov dword [ebp - 0x10], eax
call fcn.0046f2a0
mov edx, eax
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0x10]
neg eax
mov dword [ebp - 0x34], ebx
sbb eax, eax
add eax, 2
jmp 0x46dc61
mov edx, dword [ebp + 8]
mov ebx, 1
mov ecx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], ecx
mov ecx, edi
call fcn.0046f2a0
mov edx, eax
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], ecx
cmp byte [ebp - 5], cl
je 0x46dce9
lea edi, [ebx + ebx*2]
mov dword [ebp - 0x10], edx
shl edi, 4
add edx, edi
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x14], edx
push eax
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, edi
push 0
push esi
call fcn.0046e4f0
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov edx, edi
push ecx
push 4
push esi
mov dword [ebp + ecx*8 - 0x64], eax
mov ecx, dword [ebp - 0x14]
call fcn.0046e4f0
mov ecx, dword [ebp - 0x1c]
add esp, 0x20
cmp byte [edi + 0x25], 0
mov dword [ebp + ecx*8 - 0x60], eax
je 0x46dcc7
cmp byte [edi + 0x29], 0
mov edx, 2
jne 0x46dccc
mov edx, 1
movzx eax, byte [edi + 0x23]
inc ecx
add dword [ebp - 0x10], 0x30
add eax, edx
add dword [ebp - 0x14], 0x30
add esi, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
jl 0x46dc85
jmp 0x46dd43
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], ecx
push eax
push ecx
mov ecx, dword [ebp - 0x14]
mov edx, edi
push 0
push esi
call fcn.0046e4f0
mov ecx, dword [ebp - 0xc]
add esp, 0x10
cmp byte [edi + 0x25], 0
mov dword [ebp + ecx*8 - 0x64], eax
je 0x46dd1b
cmp byte [edi + 0x29], 0
mov edx, 2
jne 0x46dd20
mov edx, 1
movzx eax, byte [edi + 0x23]
inc ecx
add dword [ebp - 0x14], 0x30
add eax, edx
add esi, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x28]
cmp ecx, ebx
jl 0x46dcf1
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x2c]
mov eax, esi
mov edx, dword [ebp + 8]
and eax, 1
add esi, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0xe8]
xor esi, esi
mov dword [ebp - 0xc], eax
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
push edx
mov edx, dword [ebp + esi*8 - 0x64]
lea ecx, [ebp - 0x15]
push ecx
add eax, 0xfffffff4
lea ecx, [ebp - 0x1c]
push eax
call fcn.0046e210
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ecx], eax
cmp edx, 2
jne 0x46ddad
cmp byte [edi + 0x25], 0
mov al, byte [ebp - 0x15]
jne 0x46dda6
mov byte [edi + 0x138], al
jmp 0x46ddad
mov byte [edi + esi + 0x508], al
cmp byte [ebp - 5], 0
je 0x46debf
push edx
mov edx, dword [ebp + esi*8 - 0x60]
lea eax, [ebp - 0x15]
push eax
push dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.0046e210
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, 0x30
inc esi
mov dword [ebp - 0x10], eax
add ecx, 0x30
mov eax, dword [ebp - 0xc]
add eax, 0x18
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
cmp esi, ebx
jl 0x46dd70
cmp edx, 1
jne 0x46ded6
cmp byte [edi + 0x2a], 0
jne 0x46e00b
cmp byte [edi + 0x25], 0
mov ecx, 0x120
mov esi, dword [ebp - 0x1c]
mov eax, 0x4b0
cmove eax, ecx
mov ecx, 0x4b4
mov dword [eax + edi], esi
mov eax, 0x124
cmp byte [edi + 0x25], 0
cmove ecx, eax
movzx eax, si
mov dword [ebp - 0x14], eax
add ecx, edi
movzx eax, ax
xor edx, edx
mov dword [ebp - 0xc], eax
movzx eax, ax
mov dword [ebp - 0x20], eax
mov edi, eax
mov dword [ebp - 0x1c], ecx
movzx eax, ax
sub eax, dword [ebp - 0xc]
inc eax
mov word [ecx + edx*8], ax
movzx eax, word [esi]
inc eax
lea ecx, [esi + eax*2]
mov esi, dword [ebp - 0x1c]
mov eax, ecx
sub eax, dword [ebp - 0x14]
inc eax
mov word [esi + edx*8 + 2], ax
movzx eax, word [ecx]
inc eax
cmp byte [ebp - 5], 0
lea esi, [ecx + eax*2]
movzx eax, si
movzx ecx, si
je 0x46deaf
mov ecx, dword [ebp - 0x1c]
sub eax, edi
inc eax
mov word [ecx + edx*8 + 4], ax
movzx eax, word [esi]
lea ecx, [esi + eax*2]
mov esi, dword [ebp - 0x1c]
lea eax, [ecx + 2]
sub eax, edi
lea ecx, [ecx + 4]
inc eax
mov word [esi + edx*8 + 6], ax
movzx esi, word [ecx - 2]
lea esi, [ecx + esi*2]
movzx ecx, si
inc edx
movzx eax, cx
mov ecx, dword [ebp - 0x1c]
cmp edx, ebx
jl 0x46de53
jmp 0x46e00e
cmp edx, 2
je 0x46ddd9
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x46dddc
cmp edx, 2
jne 0x46e00b
cmp byte [edi + 0x25], 0
mov ecx, 0x12c
mov esi, dword [ebp - 0x1c]
mov eax, 0x4e4
cmove eax, ecx
mov dword [ebp - 0x10], esi
mov edx, 0x130
mov ecx, 0x4e8
mov dword [eax + edi], esi
mov al, byte [edi + 0x25]
test al, al
cmove ecx, edx
mov edx, 0x138
add ecx, edi
test al, al
mov dword [ebp - 0x20], ecx
mov ecx, 0x508
cmove ecx, edx
add ecx, edi
mov edi, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
nop dword [eax]
mov al, byte [ecx + edx]
test al, 2
je 0x46dff6
lea ecx, [edi + edx*8]
mov dword [ebp - 0x20], ecx
test al, 0x10
jne 0x46df91
mov eax, dword [ebp - 0x10]
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 [ebp - 0x20]
mov eax, ecx
sub eax, edx
inc eax
mov word [esi + 2], ax
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 [ebp - 0x14]
inc eax
mov word [esi + 6], ax
lea esi, [ecx + 2]
movzx eax, byte [ecx + 1]
add esi, eax
jmp 0x46dff3
mov eax, esi
and eax, 1
add esi, eax
mov eax, esi
sub eax, dword [ebp - 0x10]
add eax, 2
sar eax, 1
mov word [ecx], ax
movzx eax, word [esi]
inc eax
lea ecx, [esi + eax*2]
mov esi, dword [ebp - 0x20]
mov eax, ecx
sub eax, dword [ebp - 0x10]
add eax, 2
sar eax, 1
mov word [esi + 2], ax
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
mov eax, ecx
sub eax, dword [ebp - 0x10]
add eax, 2
sar eax, 1
mov word [esi + 4], ax
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
lea eax, [ecx + 2]
sub eax, dword [ebp - 0x10]
lea ecx, [ecx + 4]
add eax, 2
sar eax, 1
mov word [esi + 6], ax
movzx esi, word [ecx - 2]
lea esi, [ecx + esi*2]
mov ecx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0x14], edx
cmp edx, ebx
jl 0x46df30
mov eax, esi
and eax, 1
add esi, eax
jmp 0x46e00e
mov esi, dword [ebp - 0x1c]
cmp byte [ebp - 5], 0
je 0x46e0e7
mov eax, dword [ebp - 0x28]
lea edi, [ebp - 0xe8]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
nop word [eax + eax]
mov eax, dword [ebx]
lea ebx, [ebx + 0x30]
mov ecx, dword [edi - 0xc]
lea edi, [edi + 0x18]
add ecx, esi
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
mov esi, dword [edi - 0x18]
add dword [ebp - 0xc], 0x30
add esi, ecx
sub dword [ebp - 0x20], 1
mov eax, dword [eax]
mov dword [eax], ecx
jne 0x46e030
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xe4]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], eax
nop dword [eax]
mov eax, dword [eax]
lea edx, [edx + 0x18]
mov ecx, dword [edx - 0x24]
add ecx, esi
mov dword [eax + 4], esi
mov eax, dword [ebp - 0xc]
mov esi, dword [edx - 0x18]
add dword [ebp - 0xc], 0x30
add esi, ecx
mov eax, dword [eax]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x2c]
add eax, 0x30
mov dword [ebp - 0x2c], eax
sub ebx, 1
jne 0x46e070
mov edi, dword [ebp - 0x34]
lea ebx, [ebp - 0xe0]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
nop dword [eax + eax]
mov eax, dword [edi]
lea ecx, [esi + 0x3f]
mov esi, dword [ebx]
lea edi, [edi + 0x30]
and ecx, 0xffffffc0
lea ebx, [ebx + 0x18]
mov dword [eax + 8], ecx
mov eax, dword [ebx - 0x24]
add eax, 0x3f
add ecx, eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x28], 0x30
and ecx, 0xffffffc0
add esi, ecx
sub dword [ebp - 0x20], 1
mov eax, dword [eax]
mov dword [eax + 8], ecx
jne 0x46e0b0
mov edi, dword [ebp - 0x30]
jmp 0x46e151
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x20], ebx
mov eax, dword [edx]
lea edx, [edx + 0x30]
lea ecx, [ecx + 0x18]
mov dword [eax], esi
add esi, dword [ecx - 0x18]
sub ebx, 1
jne 0x46e0f3
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0xf0]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
mov eax, dword [edi]
lea edi, [edi + 0x30]
lea ecx, [ecx + 0x18]
mov dword [eax + 4], esi
add esi, dword [ecx - 0x18]
sub ebx, 1
jne 0x46e114
mov edx, dword [ebp - 0x2c]
lea ebx, [ebp - 0xec]
mov edi, dword [ebp - 0x30]
mov eax, dword [edx]
lea ecx, [esi + 0x3f]
mov esi, dword [ebx]
lea edx, [edx + 0x30]
and ecx, 0xffffffc0
lea ebx, [ebx + 0x18]
add esi, ecx
sub dword [ebp - 0x20], 1
mov dword [eax + 8], ecx
jne 0x46e133
mov edx, dword [ebp + 8]
cmp edx, 1
jne 0x46e1bd
cmp byte [edi + 0x25], 0
je 0x46e1bd
movzx ebx, byte [edi + 0x23]
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
test ebx, ebx
je 0x46e19b
mov edi, dword [ebp - 0x2c]
nop word [eax + eax]
movzx eax, byte [edi + ecx + 0x20]
add esi, dword [eax*8 + 0x48c830]
adc edx, dword [eax*8 + 0x48c834]
inc ecx
cmp ecx, ebx
jl 0x46e180
mov edi, dword [ebp - 0x30]
cmp esi, dword [edi]
jne 0x46e1b5
cmp edx, dword [edi + 4]
jne 0x46e1b5
xor al, al
mov byte [edi + 0x50c], al
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov byte [edi + 0x50c], al
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0042db9f
mov ecx, str.MapViewOfFile___failed__error___lu._n
add esp, 4
push esi
push ecx
push eax
call fcn.00420900
add esp, 0xc
push dword [ebp - 0x34]
push dword [ebp - 0xc]
push str.Could_not_map__s_s_into_memory._n
push 2
call fcn.0042db9f
add esp, 4
push eax
call fcn.00420900
add esp, 0x10
push 1
call fcn.0042f382
int3