Function at 0x4563e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x760
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x814]
mov dword [ebp - 0x10], esp
cmp eax, ebx
je 0x45644e
mov eax, dword [esi + 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0x818]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 0x814]
push edx
call edi
mov dword [esi + 0x81c], ebx
mov dword [esi + 0x818], ebx
mov dword [esi + 0x814], ebx
jmp 0x45645e
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x456461
push eax
call fcn.0045fa9e
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x456473
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
jmp 0x456479
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x456483
push eax
call edi
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x45648d
push eax
call edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], ebx
cmp eax, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
jne 0x4564e2
lea ecx, [ebp - 0x448]
call fcn.00460b9c
push 0xff
lea eax, [ebp - 0x43c]
push 0x4be484
push eax
mov dword [ebp - 0x448], 0x4a5e5c
call fcn.0045f9a0
add esp, 0xc
lea ecx, [ebp - 0x448]
mov byte [ebp - 0x33e], bl
push 0x4af4f8
push ecx
call fcn.00460c36
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x814], eax
jne 0x45654b
lea ecx, [ebp - 0x660]
mov dword [esi + 0x814], ebx
call fcn.00460b9c
push 0xff
lea edx, [ebp - 0x654]
push 0x4be490
push edx
mov dword [ebp - 0x660], 0x4a5e5c
call fcn.0045f9a0
add esp, 0xc
lea eax, [ebp - 0x660]
mov byte [ebp - 0x556], bl
push 0x4af4f8
push eax
call fcn.00460c36
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x14]
mov edi, eax
mov eax, dword [esi + 0x814]
push ebx
push edi
push edx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x818], eax
jne 0x4565c0
lea ecx, [ebp - 0x124]
call fcn.00460b9c
push 0xff
lea ecx, [ebp - 0x118]
push 0x4be490
push ecx
mov dword [ebp - 0x124], 0x4a5e5c
call fcn.0045f9a0
add esp, 0xc
lea edx, [ebp - 0x124]
mov byte [ebp - 0x1a], bl
push 0x4af4f8
push edx
call fcn.00460c36
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
cmp eax, ebx
mov dword [esi + 0x81c], eax
jne 0x45661c
lea ecx, [ebp - 0x230]
call fcn.00460b9c
push 0xff
lea eax, [ebp - 0x224]
push 0x4be490
push eax
mov dword [ebp - 0x230], 0x4a5e5c
call fcn.0045f9a0
add esp, 0xc
lea ecx, [ebp - 0x230]
mov byte [ebp - 0x126], bl
push 0x4af4f8
push ecx
call fcn.00460c36
cmp edi, 0x36
jae 0x456666
lea ecx, [ebp - 0x33c]
call fcn.00460b9c
push 0xff
lea edx, [ebp - 0x330]
push 0x4be3ec
push edx
mov dword [ebp - 0x33c], 0x4a5e5c
call fcn.0045f9a0
add esp, 0xc
lea eax, [ebp - 0x33c]
mov byte [ebp - 0x232], bl
push 0x4af4f8
push eax
call fcn.00460c36
cmp word [eax], 0x4d42
je 0x4566b2
lea ecx, [ebp - 0x554]
call fcn.00460b9c
push 0xff
lea ecx, [ebp - 0x548]
push 0x4be3ec
push ecx
mov dword [ebp - 0x554], 0x4a5e5c
call fcn.0045f9a0
add esp, 0xc
lea edx, [ebp - 0x554]
mov byte [ebp - 0x44a], bl
push 0x4af4f8
push edx
call fcn.00460c36
cmp dword [eax + 2], edi
jbe 0x456736
lea ecx, [ebp - 0x76c]
call fcn.00460b9c
push 0xff
lea eax, [ebp - 0x760]
push 0x4be3ec
push eax
mov dword [ebp - 0x76c], 0x4a5e5c
call fcn.0045f9a0
add esp, 0xc
lea ecx, [ebp - 0x76c]
mov byte [ebp - 0x662], bl
push 0x4af4f8
push ecx
call fcn.00460c36
mov esi, dword [ebp - 0x18]
xor ebx, ebx
mov eax, dword [esi + 0x81c]
cmp eax, ebx
je 0x456718
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x81c], ebx
mov eax, dword [esi + 0x818]
cmp eax, ebx
je 0x45672f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x818], ebx
push ebx
push ebx
call fcn.00460c36
mov edx, dword [ebp + 8]
add eax, 0xe
mov dword [esi + 4], eax
add esi, 0x14
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4