Function at 0x44d140
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453aca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x42], 0
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
push 0x20
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.00409d10
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
jne 0x44d1b4
xor al, al
jmp 0x44d618
push 0
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x5c], eax
push 0
mov eax, dword [ebp - 0x5c]
push eax
push 0
push 2
push 0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov dword [ebp - 0x7c], eax
push 0
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFileEx]
mov dword [ebp - 0x4c], eax
push 0x80
call fcn.00438ba0
add esp, 4
mov dword [0x464a50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
push 0x3c
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044b370
add esp, 8
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
add edx, 4
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x68]
add eax, 0x18
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x58]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0044b3d0
add esp, 8
movzx eax, ax
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x64]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0044b3d0
add esp, 8
movzx eax, ax
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x64]
add ecx, 0x60
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
add edx, 0x80
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x74]
jae 0x44d389
push 0xa
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00409d10
add esp, 0xc
mov edx, dword [ebp - 0x40]
imul edx, edx, 0x28
add edx, dword [ebp - 0x80]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x84], 0
jmp 0x44d2bf
mov eax, dword [ebp - 0x84]
add eax, 1
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 8
jge 0x44d302
mov ecx, dword [ebp - 0x78]
add ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0044b440
add esp, 8
mov byte [ebp - 0x85], al
movzx eax, byte [ebp - 0x85]
cmp eax, 0x1f
jle 0x44d300
mov ecx, dword [ebp - 0x84]
mov dl, byte [ebp - 0x85]
mov byte [ebp + ecx - 0x3c], dl
jmp 0x44d2b0
mov eax, dword [ebp - 0x78]
add eax, 8
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044b370
add esp, 8
mov dword [0x464e84], eax
mov edx, dword [ebp - 0x78]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0044b370
add esp, 8
mov dword [0x464e88], eax
mov ecx, dword [ebp - 0x78]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0044b370
add esp, 8
mov dword [0x464e8c], eax
mov eax, dword [ebp - 0x78]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0044b370
add esp, 8
mov dword [0x464e90], eax
push str..rsrc
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x44d37b
mov byte [ebp - 0x42], 1
jmp 0x44d389
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
jmp 0x44d27c
movzx ecx, byte [ebp - 0x42]
test ecx, ecx
je 0x44d3af
mov edx, dword [0x464e90]
mov dword [0x464a54], edx
mov eax, dword [0x464a54]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0044cf90
add esp, 8
mov edx, dword [0x464a50]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x48]
movsx ecx, byte [eax]
test ecx, ecx
je 0x44d3f5
mov edx, dword [ebp - 0x48]
movsx eax, byte [edx]
cmp eax, 0x2c
je 0x44d3f5
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
jmp 0x44d3bf
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x54]
mov byte [eax], 0
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 0x48]
movsx eax, byte [edx]
test eax, eax
je 0x44d444
mov ecx, dword [ebp - 0x48]
movsx edx, byte [ecx]
cmp edx, 0x2c
je 0x44d444
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
jmp 0x44d40e
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x54]
mov byte [edx], 0
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x48]
movsx edx, byte [ecx]
test edx, edx
je 0x44d493
mov eax, dword [ebp - 0x48]
movsx ecx, byte [eax]
cmp ecx, 0x2c
je 0x44d493
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
jmp 0x44d45d
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x54]
mov byte [ecx], 0
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x48]
movsx ecx, byte [eax]
test ecx, ecx
je 0x44d4e1
mov edx, dword [ebp - 0x48]
movsx eax, byte [edx]
cmp eax, 0x2c
je 0x44d4e1
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
mov al, byte [edx]
mov byte [ebp + ecx - 0x30], al
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
jmp 0x44d4ac
mov eax, dword [ebp - 0x54]
mov byte [ebp + eax - 0x30], 0
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x54], 0
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [0x464b04], eax
mov dword [ebp - 0x8c], 0
jmp 0x44d523
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
cmp ecx, dword [0x464b04]
jge 0x44d5bf
push 0x200
call fcn.00438ba0
add esp, 4
mov edx, dword [ebp - 0x8c]
mov ecx, dword [0x464b00]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp - 0x48]
movsx eax, byte [edx]
test eax, eax
je 0x44d594
mov ecx, dword [ebp - 0x48]
movsx edx, byte [ecx]
cmp edx, 0x2c
je 0x44d594
mov eax, dword [ebp - 0x8c]
mov ecx, dword [0x464b00]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
mov cl, byte [ecx]
mov byte [edx + eax], cl
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
jmp 0x44d551
mov ecx, dword [ebp - 0x8c]
mov edx, dword [0x464b00]
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x54]
mov byte [eax + ecx], 0
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x54], 0
jmp 0x44d514
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 5
jne 0x44d5d2
mov byte [ebp - 0x41], 1
mov ecx, dword [0x464a50]
push ecx
call fcn.00438b80
add esp, 4
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x44d60e
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret