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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4956d6
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x244
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 4], 0
push 0x49990c
mov eax, dword [ebp + 8]
push eax
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x238], ecx
cmp dword [ebp - 0x238], 0
jne 0x404359
push 0x499918
mov edx, dword [ebp + 8]
push edx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x404352
xor eax, eax
jmp 0x4049ce
mov dword [ebp - 0x18], 1
push 0x4b000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
jmp 0x404387
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 6
jge 0x40439c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + eax*4], 0
jmp 0x40437e
mov edx, dword [ebp - 0x238]
add edx, 0xa
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x20], 0
jmp 0x4043bd
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 6
jge 0x40495e
push 0x499924
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0xb4], edx
cmp dword [ebp - 0xb4], 0
je 0x40490b
push 0x50
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00474130
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x40443a
push 0x499928
push str.d:cachepublic_singersta_
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00474a28
add esp, 0xc
jmp 0x40445f
push 0x499960
push str.d:cachepublic_singerpic_
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea edx, [ebp - 0xa8]
push edx
call fcn.00474a28
add esp, 0xc
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
lea edx, [ebp - 0xa8]
push edx
call fcn.00474a90
add esp, 4
lea eax, [ebp + eax - 0xa8]
push eax
call fcn.00476380
add esp, 0xc
push 0x499998
push 0x4999a0
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00474a90
add esp, 4
lea edx, [ebp + eax - 0xa8]
push edx
call fcn.00474a28
add esp, 0xc
push 0xa0
push 0
lea eax, [ebp - 0x1b8]
push eax
call fcn.00474130
add esp, 0xc
push 0x50
lea ecx, [ebp - 0x1b8]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0xa8]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0x40000000
push 3
push 0
push 7
push accept
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0xffffffff
jne 0x404608
push 0x50
push 0
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00474130
add esp, 0xc
push 0
push 0
push 0x50
lea edx, [ebp - 0xa8]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x1b8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x64
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.00474130
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0xa8]
push eax
push 0x4999a8
lea ecx, [ebp - 0x228]
push ecx
call fcn.00476c39
add esp, 0x10
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x240]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x240]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [edx + ecx*4], 0
cmp dword [ebp - 0x18], 0
je 0x4045e5
push 0
push 0x40000000
push 3
push 0
push 7
push accept
push str.D:cachepublic_singerstaxxx.jpg
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c0], eax
jmp 0x404608
push 0
push 0x40000000
push 3
push 0
push 7
push accept
push str.D:cachepublic_singerpicxxx.jpg
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0xffffffff
je 0x404881
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404675
cmp dword [ebp - 0x230], 0
je 0x40464b
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0xac], 0
je 0x404661
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4049ce
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x4046e0
cmp dword [ebp - 0x230], 0
je 0x4046ac
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0xac], 0
je 0x4046c2
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4049ce
push 0
mov eax, dword [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x22c], eax
cmp dword [ebp + 0x10], 0
je 0x4047f8
mov ecx, dword [ebp - 0xb0]
movsx edx, byte [ecx]
cmp edx, 7
jne 0x404757
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x22c]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0x1bc]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx + 0x18]
push ecx
call fcn.00476380
add esp, 0xc
mov edx, dword [ebp - 0x1bc]
add edx, dword [ebp - 0x22c]
mov dword [ebp - 0x1bc], edx
jmp 0x4047f6
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x240]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x240]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 0
je 0x4047f6
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x234]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx + 0x18]
push eax
call fcn.00476380
add esp, 0xc
mov ecx, dword [ebp - 0x1bc]
add ecx, dword [ebp - 0x234]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0xac], 0
jmp 0x40483d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x22c]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0x1bc]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx + 0x18]
push ecx
call fcn.00476380
add esp, 0xc
mov edx, dword [ebp - 0x1bc]
add edx, dword [ebp - 0x22c]
mov dword [ebp - 0x1bc], edx
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0xb0], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1c0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c0], 0
jmp 0x404909
push 0x50
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00474130
add esp, 0xc
push 0
push 0
push 0x50
lea ecx, [ebp - 0xa8]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x1b8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x64
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.00474130
add esp, 0xc
lea ecx, [ebp - 0xa8]
push ecx
push 0x499a18
lea edx, [ebp - 0x228]
push edx
call fcn.00476c39
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x240]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x240]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [edx + ecx*4], 0
jmp 0x40490d
jmp 0x40495e
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x238], ecx
push 0x499a2c
mov edx, dword [ebp - 0x238]
push edx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jne 0x404959
jmp 0x40495e
jmp 0x4043b4
jmp 0x4049a9
mov dword [ebp - 4], 0xffffffff
jmp 0x4049ba
mov eax, dword [ebp - 0x1bc]
add eax, 0x18
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret 0xc