Function at 0x403476
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2000
mov esi, 0x47f000
push esi
add eax, 0x3e8
push ebx
mov dword [0x448840], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00405b35
mov edi, eax
cmp edi, 0xffffffff
mov dword [0x40a010], edi
jne 0x4034d0
mov eax, 0x408a04
jmp 0x40370a
push esi
mov esi, 0x477000
push esi
call fcn.00405cc5
push esi
call fcn.00405ff1
push eax
push 0x481000
call fcn.00405cc5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x424998], eax
mov esi, eax
jle 0x4035eb
mov ebx, 0x414910
mov eax, dword [0x44884c]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
mov edi, esi
jl 0x403524
mov edi, eax
push edi
push ebx
call fcn.00403184
test eax, eax
je 0x40367e
cmp dword [0x44884c], 0
jne 0x4035b6
push 0x1c
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.00405af1
mov eax, dword [ebp - 0x24]
test eax, 0xfffffff0
jne 0x4035c4
cmp dword [ebp - 0x20], 0xdeadbeef
jne 0x4035c4
cmp dword [ebp - 0x14], 0x74736e49
jne 0x4035c4
cmp dword [ebp - 0x18], 0x74666f73
jne 0x4035c4
cmp dword [ebp - 0x1c], 0x6c6c754e
jne 0x4035c4
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x41490c]
and eax, 2
or dword [0x4488c0], eax
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [0x44884c], ecx
jg 0x403686
test byte [ebp + 8], 8
jne 0x4035a8
test byte [ebp + 8], 4
jne 0x4035e9
inc dword [ebp - 8]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x4035c4
mov edi, esi
jmp 0x4035c4
test byte [ebp + 8], 2
jne 0x4035c4
push 0
call fcn.004030e5
pop ecx
cmp esi, dword [0x424998]
jge 0x4035d9
push edi
push ebx
push dword [ebp - 4]
call fcn.00406703
mov dword [ebp - 4], eax
add dword [0x41490c], edi
sub esi, edi
test esi, esi
jg 0x403509
xor ebx, ebx
push 1
call fcn.004030e5
cmp dword [0x44884c], ebx
pop ecx
je 0x403686
cmp dword [ebp - 8], ebx
je 0x403626
push dword [0x41490c]
call fcn.004031b6
push 4
lea eax, [ebp + 8]
push eax
call fcn.00403184
test eax, eax
je 0x403686
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x403686
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, 0x41c910
mov esi, eax
call fcn.00406771
push 0x47b000
lea eax, [ebp - 0x128]
push eax
call fcn.00405b64
push ebx
push 0x4000100
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x40a014], eax
jne 0x40368d
mov eax, 0x4089d4
jmp 0x40370a
push 1
call fcn.004030e5
pop ecx
mov eax, 0x408938
jmp 0x40370a
mov eax, dword [0x44884c]
add eax, 0x1c
push eax
call fcn.004031b6
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x10]
not ecx
and ecx, 4
mov dword [0x4289a4], eax
sub eax, ecx
mov ecx, dword [ebp - 0xc]
push esi
push ebx
lea eax, [eax + ecx - 0x1c]
push 0xffffffffffffffff
mov dword [0x4289a0], eax
call fcn.0040334b
cmp eax, dword [ebp - 0x10]
jne 0x403686
test byte [ebp - 0x24], 1
mov dword [0x4487ec], esi
mov eax, dword [esi]
mov dword [0x448848], eax
je 0x4036e0
inc dword [0x448844]
push 8
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x4036e6
mov eax, dword [0x42499c]
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x448800
call fcn.00405af1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4