Function at 0x4369d0
Capabilities:
Get file size

Disassembly:
sub esp, 0x560
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x55c], eax
mov eax, dword [esp + 0x56c]
push ebx
mov ebx, dword [esp + 0x56c]
push ebp
push esi
mov esi, dword [esp + 0x570]
push edi
lea edi, [esi + 8]
push edi
lea ecx, [esp + 0x64]
push ebx
push ecx
mov dword [esp + 0x2c], eax
mov ebp, 0x1e
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x18], 0
call fcn.00430530
add esp, 0xc
cmp dword [edi], 0
je 0x436ae8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [esp + 0x26c]
push str.truecrypt_lu
push edx
call fcn.0046beeb
add esp, 0xc
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x26c]
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
je 0x436ae1
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x168]
push str.._s
push eax
call fcn.0046beeb
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
xor ebp, ebp
push ebx
mov dword [esp + 0x58c], ebp
call fcn.00433420
add esp, 8
test eax, eax
jne 0x436b0f
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00434640
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
mov ecx, dword [esp + 0x56c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046be7b
add esp, 0x560
ret
mov eax, 1
jmp 0x436ac8
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x60]
mov byte [esp + eax + 0x164], cl
inc eax
test cl, cl
jne 0x436af0
cmp dword [esp + 0x584], 0
mov eax, 1
jne 0x436b16
mov eax, dword [esp + 0x580]
push 0
push 0
neg eax
push 3
sbb eax, eax
push 0
and eax, 0x40000000
push 3
or eax, 0x80000000
push eax
lea edx, [esp + 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x436aa9
cmp dword [esi + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
je 0x436b6c
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0x90083
push eax
call edi
cmp dword [esi + 8], 0
mov dword [esi], 1
jne 0x436bab
cmp dword [esp + 0x584], 0
je 0x436ba1
lea edx, [esi + 0x24]
push edx
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x2c]
push eax
lea ecx, [esi + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
neg eax
sbb eax, eax
neg eax
mov dword [esi + 0x18], eax
cmp dword [esi + 8], 0
je 0x436c2c
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00433380
add esp, 8
test eax, eax
je 0x436bca
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x10], ecx
jmp 0x436c19
mov edx, dword [esi + 0xc]
push 0
lea eax, [esp + 0x20]
push eax
push 0x18
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0x70000
push edx
call edi
test eax, eax
je 0x436aa9
mov eax, dword [esp + 0x34]
mul dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
push ecx
push edx
push eax
call fcn.0046bca0
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.0046bca0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x10]
or edx, dword [esi + 0x14]
jne 0x436c51
lea ebp, [edx + 7]
jmp 0x436aae
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x436aa9
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x10], edx
nop
mov eax, edx
sub eax, 0
je 0x436ce2
sub eax, 1
je 0x436ca6
sub eax, 1
jne 0x436d01
cmp dword [esp + 0x588], eax
jne 0x436daa
cmp dword [esi + 8], eax
je 0x436c95
cmp dword [esp + 0x5c], 0x200
jne 0x436d8d
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
sub edi, 0x600
sbb ebx, 0
jmp 0x436d01
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
test eax, eax
jb 0x436d8d
ja 0x436cc2
cmp ecx, 0x20000
jb 0x436d8d
cmp dword [esp + 0x588], 0
je 0x436cdb
sub ecx, 0x10000
sbb eax, 0
mov edi, ecx
mov ebx, eax
jmp 0x436d01
mov edi, 0x10000
jmp 0x436cff
cmp dword [esp + 0x588], 0
je 0x436cfd
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
sub edi, 0x20000
sbb ebx, 0
jmp 0x436d01
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi + 0xc]
push 0
push 0
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x436aa9
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 8]
lea eax, [esp + 0x370]
push eax
push ecx
push edx
call fcn.00459d50
add esp, 0x10
test eax, eax
je 0x436aa9
cmp dword [esp + 0x14], 0x200
je 0x436d65
cmp dword [esi + 8], 0
je 0x436d65
push 0x200
lea eax, [esp + 0x370]
push 0
push eax
call fcn.0046bf90
add esp, 0xc
mov ecx, dword [esp + 0x20]
push 0
lea eax, [esi + 4]
push eax
push ecx
lea edx, [esp + 0x378]
push edx
push 0
call fcn.00458ae0
mov ebp, eax
add esp, 0x14
cmp ebp, 3
jne 0x436d9b
mov edx, dword [esp + 0x10]
inc edx
cmp edx, 3
mov dword [esp + 0x10], edx
jl 0x436c60
test ebp, ebp
jne 0x436aae
xor eax, eax
jmp 0x436ac8
mov ebp, 3
jmp 0x436aae