Function at 0x483977
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7616
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
push 0
push 0x8000000
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [0x54299c]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0xffffffff
jne 0x483a15
mov eax, dword [ebp - 0x34]
jmp 0x483d21
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x8000002
push 0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x483a58
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
jmp 0x483d21
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x483a8f
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
jmp 0x483d21
jmp 0x483a97
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x4d
je 0x483ad0
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
jmp 0x483d21
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx + eax - 0x400]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
jmp 0x483afa
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x28]
jae 0x483bfd
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x2a
jne 0x483bf8
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + 1]
cmp eax, 0x2d
jne 0x483bf8
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [ecx + 2]
cmp edx, 0x2e
jne 0x483bf8
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax + 3]
cmp ecx, 0x2d
jne 0x483bf8
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + 4]
cmp eax, 0x2a
jne 0x483bf8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
sub edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
jmp 0x483b7a
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x28]
jae 0x483bf8
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 2
jne 0x483b9d
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 1
jne 0x483bf3
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x54]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x54]
sub edx, 1
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x483b71
jmp 0x483af1
cmp dword [ebp - 0x38], 0
jne 0x483c29
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
jmp 0x483d21
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ntdll.dll_atoi]
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [0x542978]
mov dword [ebp - 0x40], eax
push 0
push 0x8000000
push 1
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54299c]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x483cbd
jmp 0x483cea
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [0x542994]
cmp dword [ebp - 0x14], 0
ja 0x483cdd
jmp 0x483cea
mov dword [ebp - 0x34], 1
xor eax, eax
test eax, eax
jne 0x483c96
cmp dword [ebp - 0x44], 0
je 0x483cfa
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.004a4518
add esp, 4
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.004a4518
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4