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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499eac
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x4c4014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x488], esi
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x458]
push 1
push 0x4af2bc
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
call fcn.00402060
mov byte [ebp - 4], 1
lea edx, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
lea edi, [esi + 0x4c]
cmovae edx, dword [ebp - 0x458]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4360f3
sub ecx, esi
mov eax, edi
sar ecx, 1
cmp dword [edi + 0x14], 8
jb 0x43610c
mov eax, dword [edi]
mov esi, dword [edi + 0x10]
push ecx
push edx
push ecx
mov edx, esi
mov ecx, eax
call fcn.00424580
add esp, 0xc
mov dword [ebp - 0x428], 0
cmp esi, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
mov ecx, edi
cmovb eax, esi
cmp dword [edi + 0x14], 8
jb 0x43614b
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x428]
call fcn.00402060
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.00402cf0
mov ecx, dword [ebp - 0x414]
cmp ecx, 8
jb 0x4361aa
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4361a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436681
push ecx
push edx
call fcn.004699d8
add esp, 8
mov edx, dword [ebp - 0x430]
mov eax, 0x7ffffffe
mov esi, dword [ebp - 0x448]
sub eax, edx
cmp eax, esi
jb 0x436672
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x440]
push esi
cmovae ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
cmovae eax, dword [ebp - 0x458]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x48c]
lea ecx, [ebp - 0x478]
call fcn.004031a0
push 9
push str.asu.trace
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 2
call fcn.00402f10
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x428], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x440]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x428]
push eax
movq qword [ebp - 0x418], xmm0
call fcn.00402cf0
mov ecx, dword [ebp - 0x414]
cmp ecx, 8
jb 0x436295
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43628b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436677
push ecx
push edx
call fcn.004699d8
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x464]
cmp ecx, 8
jb 0x4362d9
mov edx, dword [ebp - 0x478]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4362cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436677
push ecx
push edx
call fcn.004699d8
add esp, 8
mov eax, dword [ebp - 0x488]
mov eax, dword [eax + 0x64]
cmp eax, 0xa
je 0x436304
cmp eax, 0x14
je 0x4362f8
mov dword [ebp - 0x484], 0xa00000
jmp 0x43630e
mov dword [ebp - 0x484], 0x1400000
jmp 0x43630e
mov dword [ebp - 0x484], 0x3200000
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0046bb80
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push str.rb__ccsUTF_8
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0
push eax
call fcn.0048023b
mov eax, dword [ebp - 0x47c]
add esp, 0x18
test eax, eax
je 0x43637d
push eax
push 9
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0047a0f1
push dword [ebp - 0x47c]
call fcn.00479ab1
add esp, 0x14
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x436387
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x490], esi
cmp esi, 0xffffffff
je 0x4365d0
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4365c9
mov eax, dword [ebp - 0x460]
push dword [ebp - 0x490]
mov esi, dword [ebp - 0x45c]
mov dword [ebp - 0x48c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x47d], 1
test esi, esi
jl 0x4365d7
jg 0x436408
mov eax, dword [ebp - 0x48c]
cmp eax, dword [ebp - 0x484]
jb 0x4365d7
mov eax, dword [ebp - 0x488]
lea esi, [eax + 0x68]
mov byte [eax + 0xd0], 1
mov eax, dword [esi]
test eax, eax
je 0x436425
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [ebp - 0x478]
call fcn.00403570
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 3
call fcn.00439470
push ecx
lea edx, [ebp - 0x478]
mov ecx, edi
call fcn.00435f10
add esp, 4
test al, al
je 0x4364ad
push 1
mov ecx, edi
call fcn.004351c0
add esp, 4
test eax, eax
je 0x436479
cmp eax, 1
jne 0x4364ad
push ecx
mov ecx, edi
call fcn.00427320
add esp, 4
test al, al
je 0x4364ad
cmp dword [edi + 0x14], 8
jb 0x436481
mov edi, dword [edi]
push 0
push 0x200080
push 5
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
test eax, eax
je 0x4364ad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov edi, dword [ebp - 0x488]
push esi
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x49e2d4]
mov ecx, edi
call esi
push 8
push str.keeplogs
lea ecx, [ebp - 0x428]
mov byte [ebp - 0x47d], al
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
call fcn.0040b080
mov byte [ebp - 4], 4
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebp - 0x410]
mov esi, dword [ebp - 0x428]
cmovae eax, esi
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x436540
test dl, dl
je 0x43653c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x436540
add ecx, 2
add eax, 2
test dl, dl
jne 0x436520
xor eax, eax
jmp 0x436545
sbb eax, eax
or eax, 1
test eax, eax
je 0x436551
push ecx
mov ecx, edi
call fcn.00422440
mov eax, dword [ebp - 0x414]
cmp eax, 0x10
jb 0x436587
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x43657d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43667c
push ecx
push esi
call fcn.004699d8
add esp, 8
mov ecx, dword [ebp - 0x464]
cmp ecx, 8
jb 0x4365d7
mov edx, dword [ebp - 0x478]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4365bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43667c
push ecx
push edx
call fcn.004699d8
add esp, 8
jmp 0x4365d7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x47d], 0
mov ecx, dword [ebp - 0x444]
cmp ecx, 8
jb 0x436613
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x436609
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436681
push ecx
push edx
call fcn.004699d8
add esp, 8
mov ecx, dword [ebp - 0x42c]
cmp ecx, 8
jb 0x43664f
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x436645
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436681
push ecx
push edx
call fcn.004699d8
add esp, 8
mov al, byte [ebp - 0x47d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046999a
mov esp, ebp
pop ebp
ret 4
call fcn.004013e0
call fcn.00479601
call fcn.00479601
call fcn.00479601
int3