Function at 0x4095ca
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x42005c]
mov dword [ebp + 0xc8], eax
mov eax, ecx
push ebx
mov dword [ebp - 0x48], eax
add eax, 8
lea edx, [ebp - 0x3c]
push esi
sub edx, eax
push edi
xor ebx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4095f5
lea edi, [ebp - 0x3c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x409603
mov esi, 0x4023ec
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x3c]
mov edi, 0x420c38
push eax
mov ecx, edi
call fcn.00406b37
test eax, eax
jne 0x409642
mov ecx, dword [0x420b04]
push 0x3fb
push 0x2c7
call fcn.00407f9f
jmp 0x40974a
mov ecx, edi
call fcn.00406bd3
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x421450
mov dword [esi + 0x240], ebx
call fcn.004067db
xor ecx, ecx
cmp dword [ebp - 0x44], ebx
jbe 0x40967a
add eax, 0x14
mov dword [eax - 4], ebx
mov dword [eax], ebx
inc ecx
add eax, 0x11c
cmp ecx, dword [ebp - 0x44]
jb 0x40966a
mov ecx, edi
call fcn.00406be1
inc dword [esi + 0x240]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004147f7
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x40]
push eax
call fcn.004147f7
mov ecx, dword [0x420b08]
cmp ecx, ebx
je 0x4096b7
mov eax, dword [ecx]
push esi
call dword [eax + 0x10]
test eax, eax
je 0x4097f5
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x40]
push eax
call fcn.004147f7
push 0x401d38
push esi
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x4096ef
push ebx
push 4
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004148bf
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
push dword [ebp - 0x50]
jmp 0x40971d
push 0x401cd0
push esi
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x4097f5
push ebx
push 5
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004148bf
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x70]
push dword [ebp - 0x60]
lea ecx, [ebp - 0x80]
call fcn.00414ef1
push edi
mov ecx, 0x421450
call fcn.004067ed
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 0x4c], ecx
jne 0x409756
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
push 0x3fd
push 0x2c7
call dword [eax]
xor eax, eax
jmp 0x40980b
cmp al, bl
je 0x409761
inc esi
mov al, byte [esi]
cmp al, 0x5c
jne 0x409751
cmp al, bl
je 0x409761
inc esi
lea eax, [ecx + 0x18]
lea edx, [ebp - 0x3c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x409769
lea eax, [ebp - 0x3c]
push eax
call fcn.00403f61
mov eax, esi
mov edx, esi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409780
lea edi, [ebp - 0x3c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40978d
mov ecx, eax
shr ecx, 2
push ebx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 3
mov ecx, eax
push bind
lea eax, [ebp - 0x3c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4097e3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
shr ecx, 0xf
inc ecx
add dword [eax + 0x10], ecx
jmp 0x4097e6
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x80]
shr ecx, 0xf
inc ecx
add dword [eax + 0x14], ecx
mov edi, 0x420c38
mov ecx, edi
call fcn.00406c1e
test eax, eax
jne 0x409808
mov esi, dword [ebp - 0x48]
jmp 0x40967a
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xc8]
pop edi
pop esi
pop ebx
call fcn.0040bf1b
add ebp, 0xcc
leave
ret