Function at 0x405237
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2004
mov esi, 0x4f20d8
add eax, 0x3e8
push esi
push ebx
mov dword [0x431dc0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00409826
mov esi, eax
mov dword [0x41d010], esi
cmp esi, 0xffffffff
jne 0x4052a1
lea ecx, [ebp + 0xb]
call fcn.00404beb
mov esi, eax
mov ecx, esi
call fcn.0040503d
mov eax, esi
jmp 0x405552
push 0x4f20d8
push 0x4e20b8
call fcn.00409ad1
push 0x4e20b8
call fcn.00409bdf
push eax
push 0x4f60e0
call fcn.00409ad1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x431dd4], esi
test esi, esi
jle 0x4053c4
mov ebx, dword [ebp + 8]
cmp dword [0x431db8], 0
mov eax, 0x8000
mov edi, 0x200
cmovne edi, eax
cmp esi, edi
cmovl edi, esi
push edi
push 0x43df18
call fcn.00404ce3
test eax, eax
je 0x405401
cmp dword [0x431db8], 0
jne 0x405388
push 0x24
push 0x43df18
lea eax, [ebp - 0x2c]
push eax
call fcn.00409d1b
test dword [ebp - 0x2c], 0xfffffff0
jne 0x405395
cmp dword [ebp - 0x28], 0xedbbbdee
jne 0x405395
cmp dword [ebp - 0x18], 0x496f7576
jne 0x405395
cmp dword [ebp - 0x1c], 0x756e6773
jne 0x405395
cmp dword [ebp - 0x20], 0x4f766b6d
jne 0x405395
mov eax, dword [0x431dd8]
or ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword [0x431db8], eax
mov eax, ebx
and eax, 2
or dword [0x41dc88], eax
cmp ecx, esi
jg 0x4053eb
mov eax, ebx
and al, 0xc
cmp al, 4
je 0x4053be
inc dword [ebp - 8]
lea esi, [ecx - 4]
cmp edi, esi
jbe 0x405395
mov edi, esi
jmp 0x405395
test bl, 2
jne 0x405395
push 0
call fcn.00405191
pop ecx
cmp esi, dword [0x431dd4]
jge 0x4053ae
push edi
push 0x43df18
push dword [ebp - 4]
call fcn.00401cf8
mov dword [ebp - 4], eax
add dword [0x431dd8], edi
sub esi, edi
test esi, esi
jg 0x4052e1
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push 1
call fcn.00405191
cmp dword [0x431db8], 0
pop ecx
jne 0x40541f
lea ecx, [ebp + 0xb]
call fcn.0040418f
mov esi, eax
mov ecx, esi
call fcn.004050b5
jmp 0x40529a
lea ecx, [ebp + 0xb]
call fcn.00403efc
mov esi, eax
mov ecx, esi
call fcn.0040510d
jmp 0x40529a
push 1
call fcn.00405191
pop ecx
lea ecx, [ebp + 0xb]
call fcn.00404867
mov esi, eax
mov ecx, esi
call fcn.00405165
jmp 0x40529a
test ebx, ebx
je 0x405458
push dword [0x431dd8]
call fcn.00404d15
push 4
lea eax, [ebp - 4]
push eax
call fcn.00404ce3
test eax, eax
je 0x405442
cmp edi, dword [ebp - 4]
je 0x405458
lea ecx, [ebp + 0xb]
call fcn.0040454f
mov esi, eax
mov ecx, esi
call fcn.004050e1
jmp 0x40529a
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, 0x431de0
mov esi, eax
call fcn.00401cd6
push 0x4ea0c8
lea eax, [ebp - 0x234]
push eax
call fcn.004098f0
xor ebx, ebx
lea eax, [ebp - 0x234]
push ebx
push 0x4000100
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x41d014], eax
cmp eax, 0xffffffff
jne 0x4054be
lea ecx, [ebp + 0xb]
call fcn.004043bf
mov esi, eax
mov ecx, esi
call fcn.00405089
jmp 0x40529a
mov eax, dword [0x431db8]
add eax, 0x24
push eax
call fcn.00404d15
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x10]
not ecx
mov dword [0x431dcc], eax
and ecx, 4
sub eax, ecx
mov ecx, dword [ebp - 0xc]
push esi
add ecx, 0xffffffdc
push ebx
add eax, ecx
push 0xffffffffffffffff
mov dword [0x431dd0], eax
call fcn.00404ed8
cmp eax, dword [ebp - 0x10]
je 0x40550f
lea ecx, [ebp + 0xb]
call fcn.00403c69
mov esi, eax
mov ecx, esi
call fcn.00405139
jmp 0x40529a
test byte [ebp - 0x2c], 1
mov dword [0x431db0], esi
mov eax, dword [esi]
mov dword [0x431db4], eax
je 0x405528
inc dword [0x431dbc]
push 8
pop ecx
lea eax, [esi + 0x44]
lea eax, [eax - 8]
add dword [eax], esi
sub ecx, 1
jne 0x40552e
mov eax, dword [0x431dc8]
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x431d70
call fcn.00409d1b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4