Function at 0x435bf0
Capabilities:
Get file size

Disassembly:
sub esp, 0x560
mov eax, dword [0x4b38b4]
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.0042fc30
add esp, 0xc
cmp dword [edi], 0
je 0x435d08
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [esp + 0x26c]
push str.truecrypt_lu
push edx
call fcn.0046a534
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 0x435d01
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x168]
push str.._s
push eax
call fcn.0046a534
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
xor ebp, ebp
push ebx
mov dword [esp + 0x58c], ebp
call fcn.00432670
add esp, 8
test eax, eax
jne 0x435d2f
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.004339a0
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.00469f7b
add esp, 0x560
ret
mov eax, 1
jmp 0x435ce8
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x60]
mov byte [esp + eax + 0x164], cl
inc eax
test cl, cl
jne 0x435d10
cmp dword [esp + 0x584], 0
mov eax, 1
jne 0x435d36
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 0x435cc9
cmp dword [esi + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
je 0x435d8c
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 0x435dcb
cmp dword [esp + 0x584], 0
je 0x435dc1
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 0x435e4c
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004325d0
add esp, 8
test eax, eax
je 0x435dea
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x10], ecx
jmp 0x435e39
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 0x435cc9
mov eax, dword [esp + 0x34]
mul dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
push ecx
push edx
push eax
call fcn.0046b780
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.0046b780
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x10]
or edx, dword [esi + 0x14]
jne 0x435e71
lea ebp, [edx + 7]
jmp 0x435cce
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x435cc9
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 0x435f02
sub eax, 1
je 0x435ec6
sub eax, 1
jne 0x435f21
cmp dword [esp + 0x588], eax
jne 0x435fca
cmp dword [esi + 8], eax
je 0x435eb5
cmp dword [esp + 0x5c], 0x200
jne 0x435fad
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
sub edi, 0x600
sbb ebx, 0
jmp 0x435f21
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
test eax, eax
jb 0x435fad
ja 0x435ee2
cmp ecx, 0x20000
jb 0x435fad
cmp dword [esp + 0x588], 0
je 0x435efb
sub ecx, 0x10000
sbb eax, 0
mov edi, ecx
mov ebx, eax
jmp 0x435f21
mov edi, 0x10000
jmp 0x435f1f
cmp dword [esp + 0x588], 0
je 0x435f1d
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
sub edi, 0x20000
sbb ebx, 0
jmp 0x435f21
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 0x435cc9
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.00458200
add esp, 0x10
test eax, eax
je 0x435cc9
cmp dword [esp + 0x14], 0x200
je 0x435f85
cmp dword [esi + 8], 0
je 0x435f85
push 0x200
lea eax, [esp + 0x370]
push 0
push eax
call fcn.0046a470
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.00457180
mov ebp, eax
add esp, 0x14
cmp ebp, 3
jne 0x435fbb
mov edx, dword [esp + 0x10]
inc edx
cmp edx, 3
mov dword [esp + 0x10], edx
jl 0x435e80
test ebp, ebp
jne 0x435cce
xor eax, eax
jmp 0x435ce8
mov ebp, 3
jmp 0x435cce