Function at 0x402d8a
Capabilities:
Get file size
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
push ebx
push esi
push edi
call fcn.004023e4
mov edi, 0x200
push edi
call fcn.00403812
pop ecx
mov esi, eax
push edi
push esi
xor ebx, ebx
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.00403d65
push esi
call fcn.0040290a
test eax, eax
pop ecx
pop ecx
je 0x403081
push esi
call fcn.00402979
test eax, eax
pop ecx
je 0x403081
push esi
call fcn.00402d6b
test eax, eax
pop ecx
je 0x402df5
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
push ebx
push ebx
push 3
push ebx
push ebx
mov edi, 0x80000000
push edi
push esi
call dword [0x40604c]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40307a
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403812
pop ecx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call dword [0x406044]
push dword [ebp - 0xc]
call dword [0x406054]
shr esi, 2
xor eax, eax
dec esi
cmp esi, ebx
mov dword [ebp - 0x10], ebx
jbe 0x402f18
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax*4]
cmp edx, dword [0x406028]
jne 0x402e75
mov edx, dword [ecx + eax*4 + 4]
cmp edx, dword [str._8GV]
jne 0x402e75
lea edx, [eax + 2]
mov dword [ebp - 0x10], edx
inc eax
cmp eax, esi
jb 0x402e55
cmp dword [ebp - 0x10], ebx
je 0x402f1b
mov esi, 0x400
push esi
call fcn.00403812
push esi
mov dword [ebp - 0xc], eax
call fcn.00403812
push esi
mov dword [ebp - 0x24], eax
call fcn.00403812
push esi
push eax
mov dword [ebp - 0x18], eax
call fcn.00404030
add esp, 0x14
push str.iexchg.dll
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
push ebx
push 3
push ebx
push ebx
push edi
push dword [ebp - 0x18]
call dword [0x40604c]
mov esi, eax
cmp esi, 0xffffffff
je 0x402f4b
push ebx
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 4]
push eax
push esi
call dword [0x406044]
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x828]
push eax
push esi
call dword [0x406044]
mov eax, dword [ebp - 0x20]
push esi
mov byte [ebp + eax - 0x828], bl
call dword [0x406054]
push dword [ebp - 0x18]
call dword [0x406048]
xor esi, esi
jmp 0x402f3a
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00403826
pop ecx
jmp 0x40307a
mov eax, esi
inc esi
cmp eax, 0xa
jge 0x402f4b
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x828]
push eax
call dword [0x406048]
test eax, eax
je 0x402f27
push ebx
push ebx
push 4
push ebx
push ebx
mov edi, 0x40000000
push edi
push dword [ebp - 0x18]
call dword [0x40604c]
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
call fcn.00403826
mov dword [esp], str..exe
push dword [ebp - 0xc]
call fcn.0040281c
push str..sys
push dword [ebp - 0x24]
call fcn.0040281c
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
add esp, 0x10
push dword [ebp - 8]
call esi
push ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [0x406058]
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [0x406058]
push dword [ebp - 0x24]
call esi
push ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [0x406058]
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 4]
call dword [0x406058]
push dword [ebp - 4]
call dword [0x406054]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [0x406050]
push dword [ebp - 8]
call fcn.00403826
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop ecx
mov ecx, dword [esi + eax*4]
push ebx
push ebx
push 4
push ebx
lea eax, [esi + eax*4 + 4]
push ebx
mov dword [ebp - 8], ecx
mov ecx, dword [eax]
add eax, 4
push edi
push dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
call dword [0x40604c]
push dword [ebp - 8]
mov edi, eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00401bcd
add esp, 0xc
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [0x406058]
push edi
call dword [0x406054]
push esi
call fcn.00403826
push dword [ebp - 0xc]
call fcn.004015d3
test eax, eax
pop ecx
pop ecx
jne 0x40308d
xor eax, eax
jmp 0x402df0
call fcn.00402a0a
push esi
call fcn.004029a7
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]