Function at 0x406d5a
Capabilities:
Get file size

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x41b230]
xor eax, esp
mov dword [esp + 0x2d4], eax
mov eax, dword [esp + 0x2e0]
and dword [esp + 0x14], 0
push ebx
push ebp
mov ebp, dword [esp + 0x2e4]
push esi
push edi
push 0x2c
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2c]
push 0
push eax
mov ebx, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0x800b0100
call fcn.0040a890
add esp, 0xc
xor edx, edx
push 8
pop ecx
push edx
push edx
push 3
push edx
push 1
push 0x80000000
xor eax, eax
mov dword [esp + 0x6c], edx
lea edi, [esp + 0x70]
push ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x94], 0xf750e6c3
mov dword [esp + 0x98], 0x11d138ee
mov dword [esp + 0x9c], 0xc000e585
mov dword [esp + 0xa0], 0xee95c24f
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40708c
test esi, esi
je 0x40708c
lea eax, [esp + 0x88]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x407085
xor edi, edi
cmp dword [esp + 0x8c], edi
jg 0x407085
jl 0x406e5a
cmp dword [esp + 0x88], 0x2000000
ja 0x407085
mov eax, 0x100
push eax
mov dword [esp + 0x20], eax
call fcn.0040aa38
pop ecx
push edi
mov ebp, eax
push ebp
lea eax, [esp + 0x24]
push eax
push esi
call dword [ebx + 0x10b0]
test eax, eax
jne 0x406eb6
push ebp
call fcn.0040aa33
push dword [esp + 0x20]
call fcn.0040aa38
pop ecx
pop ecx
push edi
mov ebp, eax
push ebp
lea eax, [esp + 0x24]
push eax
push esi
call dword [ebx + 0x10b0]
test eax, eax
jne 0x406eb6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.0040aa33
pop ecx
jmp 0x40708c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x28]
push eax
call dword [ebx + 0x10b4]
test eax, eax
je 0x406eaa
mov eax, dword [esp + 0x1c]
push 0x11
pop ecx
push 2
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
lea edi, [esp + 0x2a0]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea eax, [eax*2 + 1]
pop edx
mul edx
seto cl
movsw word es:[edi], word [esi]
neg ecx
or ecx, eax
push ecx
call fcn.0040aa38
mov esi, eax
mov eax, dword [esp + 0x20]
pop ecx
xor ecx, ecx
test eax, eax
je 0x406f43
movzx eax, byte [ecx + ebp]
shr eax, 4
movsx ax, byte [esp + eax + 0x29c]
mov word [esi + ecx*4], ax
movzx eax, byte [ecx + ebp]
and eax, 0xf
inc ecx
movsx ax, byte [esp + eax + 0x29c]
mov word [esi + ecx*4 - 2], ax
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jb 0x406f11
xor ecx, ecx
push ecx
push ecx
mov word [esi + eax*4], cx
push dword [esp + 0x24]
push ebp
push dword [esp + 0x30]
call dword [ebx + 0x10b8]
push ebp
mov edi, eax
call fcn.0040aa33
xor ebp, ebp
pop ecx
test edi, edi
je 0x407067
push 0x208
lea eax, [esp + 0x98]
push ebp
push eax
mov dword [esp + 0x9c], ebp
call fcn.0040a890
add esp, 0xc
lea eax, [esp + 0x90]
push ebp
push eax
push edi
call dword [ebx + 0x10bc]
test eax, eax
je 0x40705b
cmp byte [ebx + 0x1032], 0
lea eax, [esp + 0x94]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
push 2
pop eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x24
mov dword [esp + 0x60], esi
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 1
mov dword [esp + 0x3c], eax
je 0x406fff
or dword [esp + 0x4c], 0x1200
jmp 0x407004
or dword [esp + 0x4c], 0x10
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x7c]
push eax
push 0xffffffffffffffff
call dword [ebx + 0x10d0]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x407041
xor edx, edx
mov word [ecx], dx
cmp eax, 0x800b0100
je 0x407041
push dword [esp + 0x2f4]
push ecx
push dword [esp + 0x4c]
mov ecx, ebx
call fcn.0040570e
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x7c]
push eax
push 0xffffffffffffffff
mov dword [esp + 0x4c], 2
call dword [ebx + 0x10d0]
push ebp
push edi
push dword [esp + 0x28]
call dword [ebx + 0x10c0]
push esi
call fcn.0040aa33
pop ecx
push ebp
push dword [esp + 0x24]
call dword [ebx + 0x10c4]
push dword [esp + 0x10]
call fcn.0040693b
pop ecx
jmp 0x40708f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x2e4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408f2b
add esp, 0x2d8
ret 0xc