Function at 0x4302e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593c33
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x478]
push 1
push 0x5ea858
mov dword [ebp - 0x464], 7
mov dword [ebp - 0x468], eax
mov word [ebp - 0x478], ax
call fcn.004081c0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x478]
cmp dword [ebp - 0x464], 8
cmovae edx, dword [ebp - 0x478]
cmp word [edx], 0
jne 0x43037b
xor ecx, ecx
jmp 0x43038f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430380
sub ecx, esi
sar ecx, 1
push ecx
push ecx
lea esi, [edi + 0x4c]
push edx
mov ecx, esi
call fcn.00413fc0
push eax
push 0
lea eax, [ebp - 0x440]
mov ecx, esi
push eax
call fcn.00416f20
mov ebx, eax
lea eax, [ebp - 0x428]
cmp eax, ebx
je 0x430400
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x4303d7
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00407210
xor eax, eax
mov dword [ebp - 0x414], 7
push ebx
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
call fcn.004083b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x430422
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00407210
lea eax, [ebp - 0x478]
push eax
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x458]
call fcn.00431860
push str.asu.trace
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x440]
call fcn.00414040
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x428]
cmp eax, ebx
je 0x4304a6
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x43047d
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00407210
xor eax, eax
mov dword [ebp - 0x414], 7
push ebx
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
call fcn.004083b0
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x4304c4
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00407210
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x440], ax
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
cmp eax, 8
jb 0x430503
inc eax
lea ecx, [ebp - 0x458]
push eax
push dword [ebp - 0x458]
call fcn.00407210
mov eax, dword [edi + 0x64]
cmp eax, 0xa
je 0x430528
cmp eax, 0x14
je 0x43051c
mov dword [ebp - 0x480], 0xa00000
jmp 0x430532
mov dword [ebp - 0x480], 0x1400000
jmp 0x430532
mov dword [ebp - 0x480], 0x3200000
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00568da0
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
push 0x5ecbb8
cmovae eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0
push eax
call fcn.005705ca
mov eax, dword [ebp - 0x47c]
add esp, 0x18
test eax, eax
je 0x4305a1
push eax
push 9
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.00571c0d
push dword [ebp - 0x47c]
call fcn.00570687
add esp, 0x14
xor bl, bl
cmp dword [esi + 0x14], 8
jb 0x4305ad
mov eax, dword [esi]
jmp 0x4305af
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48c], eax
cmp eax, 0xffffffff
jne 0x4305da
xor bl, bl
jmp 0x4307a2
lea ecx, [ebp - 0x460]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x430608
mov eax, dword [ebp - 0x460]
mov bl, 1
mov dword [ebp - 0x488], eax
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x484], eax
jmp 0x430620
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x484], eax
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x488], eax
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4307a2
cmp dword [ebp - 0x484], 0
jl 0x4307a2
jg 0x430655
mov eax, dword [ebp - 0x488]
cmp eax, dword [ebp - 0x480]
jb 0x4307a2
mov eax, dword [edi + 0x68]
lea ebx, [edi + 0x68]
mov byte [edi + 0xd0], 1
test eax, eax
je 0x43066d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x42c], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call fcn.00407320
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 5
call fcn.004319e0
lea edx, [ebp - 0x440]
mov ecx, esi
call fcn.004301d0
test al, al
je 0x4306c0
mov ecx, edi
call fcn.0042b440
mov eax, dword [edi]
mov ecx, edi
push ebx
mov eax, dword [eax]
call eax
push 8
push str.keeplogs
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x444], 0xf
mov bl, al
mov dword [ebp - 0x448], 0
mov byte [ebp - 0x458], 0
call fcn.00402cd0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x458]
mov esi, dword [ebp - 0x444]
lea ecx, [ebp - 0x410]
cmp esi, 0x10
cmovae eax, dword [ebp - 0x458]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x430738
test dl, dl
je 0x430734
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x430738
add ecx, 2
add eax, 2
test dl, dl
jne 0x430718
xor eax, eax
jmp 0x43073d
sbb eax, eax
or eax, 1
test eax, eax
je 0x43074f
push ecx
mov ecx, edi
call fcn.0042a4c0
mov esi, dword [ebp - 0x444]
cmp esi, 0x10
jb 0x430769
lea eax, [esi + 1]
push eax
push dword [ebp - 0x458]
lea ecx, [ebp - 0x458]
call fcn.004032e0
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], 0
mov byte [ebp - 0x458], 0
cmp eax, 8
jb 0x4307a2
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00407210
mov eax, dword [ebp - 0x464]
cmp eax, 8
jb 0x4307c0
inc eax
lea ecx, [ebp - 0x478]
push eax
push dword [ebp - 0x478]
call fcn.00407210
xor eax, eax
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x468], 0
cmp eax, 8
jb 0x4307fb
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00407210
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 4