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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652381
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebx + 0x88]
xor esi, esi
cmp eax, esi
je 0x54dc39
cmp dword [eax + 0x10], esi
je 0x54dc39
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov dword [ebp - 4], esi
push esi
push 0x8000080
push 4
push esi
push esi
push 0x80000000
mov ecx, dword [ebx + 0x88]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, 0xffffffff
je 0x54dc39
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push 0
push esi
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x54dbd4
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x54dbc7
mov eax, dword [ebp + 8]
cmp eax, 8
jne 0x54d8e2
push 0x58
call fcn.005e7678
add esp, 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x54d8a8
mov ecx, eax
call fcn.005618f0
jmp 0x54d8aa
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebx + 0x18], eax
test eax, eax
je 0x54dbc0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push esi
push edi
mov ecx, eax
call fcn.00562500
test eax, eax
je 0x54dbc0
mov dword [ebp - 0x18], 1
jmp 0x54dbc0
cmp eax, 0x200
jne 0x54d939
push 0x58
call fcn.005e7678
add esp, 4
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x54d907
mov ecx, eax
call fcn.005618f0
jmp 0x54d909
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebx + 0x18], eax
test eax, eax
je 0x54dbc0
mov edx, dword [ebp + 0xc]
push edx
push esi
push edi
mov ecx, eax
call fcn.00562280
test eax, eax
je 0x54dbc0
mov dword [ebp - 0x18], 1
jmp 0x54dbc0
cmp eax, 1
jne 0x54dbc0
push 0x58
call fcn.005e7678
add esp, 4
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x54d960
mov ecx, eax
call fcn.005618f0
jmp 0x54d962
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebx + 0x18], eax
test eax, eax
je 0x54dbc0
mov byte [eax + 0xc], 1
push str._fragments_
push edi
call fcn.006148e0
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x54d9f9
add eax, 0xb
mov dword [ebp - 0x14], eax
mov cl, byte [eax]
cmp cl, 0x20
je 0x54dc20
cmp cl, 9
je 0x54dc20
cmp cl, 0xd
je 0x54dc20
cmp cl, 0xa
je 0x54dc20
cmp cl, 0x3a
jne 0x54d9f9
inc eax
mov dword [ebp - 0x14], eax
mov cl, byte [eax]
cmp cl, 0x20
je 0x54d9bb
cmp cl, 9
je 0x54d9bb
cmp cl, 0xd
je 0x54d9bb
cmp cl, 0xa
je 0x54d9bb
mov ecx, dword [ebx + 0x18]
push ecx
mov edx, edi
sub edx, eax
add edx, esi
push edx
push eax
call fcn.0054b4d0
add esp, 0xc
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x40], 0
je 0x54d9f9
mov dword [ebp - 0x18], 1
push str._template_
push edi
call fcn.006148e0
add esp, 8
mov esi, eax
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x18], 0
je 0x54dbc0
test esi, esi
je 0x54dbc0
add esi, 0xa
mov dword [ebp - 0x14], esi
mov al, byte [esi]
cmp al, 0x20
je 0x54dc26
cmp al, 9
je 0x54dc26
cmp al, 0xd
je 0x54dc26
cmp al, 0xa
je 0x54dc26
cmp al, 0x3a
jne 0x54dbc0
inc esi
mov dword [ebp - 0x14], esi
mov al, byte [esi]
cmp al, 0x20
je 0x54da4e
cmp al, 9
je 0x54da4e
cmp al, 0xd
je 0x54da4e
cmp al, 0xa
je 0x54da4e
cmp al, 0x22
jne 0x54dbc0
inc esi
mov dword [ebp - 0x14], esi
push 0x22
push esi
call fcn.00614820
add esp, 8
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, esi
jbe 0x54dbbd
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 4
sub ebx, esi
lea ecx, [ebx + 1]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402850
mov edi, eax
test edi, edi
je 0x54dbae
push ebx
push esi
push edi
call fcn.00614de0
add esp, 0xc
sub edi, esi
mov edx, dword [ebp - 0x28]
mov byte [edi + edx], 0
lea ecx, [ebp + 0x14]
call fcn.00402500
mov byte [ebp - 4], 5
push 1
lea ecx, [ebp + 0x14]
call fcn.00402850
mov dword [ebp - 0x20], 1
push 0x4000000
lea ecx, [ebp - 0x20]
push ecx
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov esi, dword [ebp + 0xc]
push esi
mov edi, dword [sym.imp.WININET.dll_InternetCombineUrlA]
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 1]
cmp ecx, 0x13fe
ja 0x54dba2
push eax
lea ecx, [ebp + 0x14]
call fcn.00402850
push 0x4000000
lea edx, [ebp - 0x20]
push edx
push eax
mov eax, dword [ebp - 0x1c]
push eax
push esi
call edi
test eax, eax
je 0x54dba2
push 0x25
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00614820
add esp, 8
test eax, eax
je 0x54db51
push 0x67ea50
push 0x67ea4c
lea ecx, [ebp + 0x14]
call fcn.00402c10
push 0x5c
mov edx, dword [ebp + 0x14]
push edx
call fcn.00614820
add esp, 8
test eax, eax
je 0x54db75
push 0x691a48
push 0x66ee6c
lea ecx, [ebp + 0x14]
call fcn.00402c10
push 0x66b5ec
push str._fragment_
lea ecx, [ebp + 0x14]
call fcn.00402c10
mov eax, dword [ebp + 0x14]
push eax
push 0x66ae98
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x18]
add edx, 8
push edx
call fcn.00402f80
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x14]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x54dc0a
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x54dbf7
cmp dword [ebp + 8], 8
je 0x54dc0a
mov eax, dword [ebx + 0xdc]
test eax, eax
je 0x54dc0a
push eax
mov ecx, dword [ebx + 0x18]
call fcn.00561830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
inc eax
jmp 0x54d98d
inc esi
jmp 0x54da21
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10