Function at 0x40cbb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427655
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x264], eax
push 0
push 0x80
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 7
push 5
cmova eax, dword [ebp + 0xc]
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d05e
lea eax, [ebp - 0x274]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40d057
cmp dword [ebp - 0x270], 0
jg 0x40d057
jl 0x40cc54
cmp dword [ebp - 0x274], 0x2000000
ja 0x40d057
push 0x100
mov dword [ebp - 0x250], 0x100
call fcn.0040f15a
mov esi, eax
mov dword [ebp - 0x258], eax
add esp, 4
mov dword [ebp - 0x25c], esi
push 0
push eax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0xc]
push eax
push edi
call ecx
test eax, eax
jne 0x40ccda
push dword [ebp - 0x250]
call fcn.0040f15a
add esp, 4
mov esi, eax
mov dword [ebp - 0x25c], esi
push dword [ebp - 0x258]
call fcn.0040f112
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x250]
add esp, 4
push 0
push esi
push ecx
push edi
call eax
test eax, eax
jne 0x40ccda
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x40d048
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x24]
push 0
push ecx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x260], 0x800b0100
push ecx
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x24], 0xf750e6c3
mov dword [ebp - 0x20], 0x11d138ee
mov dword [ebp - 0x1c], 0xc000e585
mov dword [ebp - 0x18], 0xee95c24f
call eax
test eax, eax
jne 0x40cd2f
lea edi, [eax + 1]
jmp 0x40d048
mov eax, dword [ebp - 0x250]
mov ecx, 2
lea eax, [eax*2 + 1]
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0040f15a
mov edx, eax
add esp, 4
mov dword [ebp - 0x258], edx
mov byte [ebp - 4], 2
lea edi, [ebp - 0x2bc]
mov eax, dword [ebp - 0x250]
mov ecx, 0x11
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x25c]
test eax, eax
je 0x40cdc2
jmp 0x40cd90
movzx eax, byte [ecx + esi]
shr eax, 4
movsx eax, byte [ebp + eax - 0x2bc]
mov word [edx + ecx*4], ax
movzx eax, byte [ecx + esi]
and eax, 0xf
movsx eax, byte [ebp + eax - 0x2bc]
mov word [edx + ecx*4 + 2], ax
inc ecx
mov eax, dword [ebp - 0x250]
cmp ecx, eax
jb 0x40cd90
xor ecx, ecx
push ecx
push ecx
mov word [edx + eax*4], cx
push dword [ebp - 0x250]
mov eax, dword [ebx + 0x14]
push esi
push dword [ebp - 0x254]
call eax
mov edi, eax
mov dword [ebp - 0x268], edi
test edi, edi
je 0x40d020
push 0x20c
lea eax, [ebp - 0x24c]
push 0
push eax
call fcn.00411010
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x24c]
add esp, 0xc
push 0
push ecx
push edi
call eax
test eax, eax
je 0x40d012
cmp dword [ebp + 0x20], 7
lea eax, [ebp - 0x248]
mov dword [ebp - 0x2d8], eax
lea eax, [ebp + 0xc]
cmova eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2e0], 0x24
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x2a8], 0x30
mov dword [ebp - 0x29c], 2
mov dword [ebp - 0x298], 1
mov dword [ebp - 0x294], 2
mov dword [ebp - 0x28c], 1
mov dword [ebp - 0x290], eax
cmp dword [0x435b64], ecx
jne 0x40cf41
push 0x28
call fcn.0040f117
add esp, 4
mov dword [ebp - 0x260], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00405dc0
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, edx
mov edi, 0x435b64
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x40cf3b
test edx, edx
je 0x40cf3b
push 0x28
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0x280]
mov eax, dword [0x435b64]
cmp dword [eax], 3
jl 0x40cf53
or ecx, 0x1000
jmp 0x40cf56
or ecx, 0x10
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x280], ecx
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
call eax
mov edi, dword [ebp - 0x264]
mov dword [ebp - 0x260], eax
test edi, edi
je 0x40cff0
cmp eax, 0x800b0100
je 0x40cfda
push dword [ebp - 0x288]
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0040c6b0
push eax
mov ecx, edi
call fcn.00408fe0
mov ecx, dword [ebp - 0x28]
cmp ecx, 7
jbe 0x40cff0
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cfce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0b9
push ecx
push edx
call fcn.0040f14c
add esp, 8
jmp 0x40cff0
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x40cfe4
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x28c], 2
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx + 0x2c]
push 0
call eax
mov edi, dword [ebp - 0x268]
mov eax, dword [ebx + 0x1c]
push 0
push edi
push dword [ebp - 0x254]
call eax
mov eax, dword [ebx + 0x20]
push 0
push dword [ebp - 0x254]
call eax
mov ecx, dword [ebp - 0x260]
call fcn.0040be30
push dword [ebp - 0x258]
mov edi, eax
call fcn.0040f112
add esp, 4
test esi, esi
je 0x40d063
push esi
call fcn.0040f112
add esp, 4
jmp 0x40d063
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov ecx, dword [ebp + 0x20]
cmp ecx, 7
jbe 0x40d099
mov edx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d08f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0be
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f104
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00417f31
call fcn.00417f31
int3