Function at 0x439b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push 0xfffffffffffffffe
pop eax
cmp ebx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
jne 0x439b57
call fcn.00425368
and dword [eax], 0
call fcn.00425355
mov dword [eax], 9
or eax, 0xffffffff
jmp 0x43a0d4
push esi
xor esi, esi
cmp ebx, esi
jl 0x439b66
cmp ebx, dword [0x44eda8]
jb 0x439b85
call fcn.00425368
mov dword [eax], esi
call fcn.00425355
mov dword [eax], 9
call fcn.0042bf0b
or eax, 0xffffffff
jmp 0x43a0d3
mov eax, ebx
sar eax, 5
push edi
and ebx, 0x1f
lea edi, [eax*4 + 0x44edc0]
mov eax, dword [edi]
shl ebx, 6
mov cl, byte [eax + ebx + 4]
test cl, 1
jne 0x439bb7
call fcn.00425368
mov dword [eax], esi
call fcn.00425355
mov dword [eax], 9
jmp 0x439c1f
cmp edx, 0x7fffffff
ja 0x439c0d
cmp edx, esi
mov dword [ebp - 0xc], esi
je 0x43a0d0
test cl, 2
jne 0x43a0d0
cmp dword [ebp + 0xc], esi
je 0x439c0d
mov al, byte [eax + ebx + 0x24]
add al, al
sar al, 1
mov byte [ebp - 2], al
push 4
pop ecx
movsx eax, al
dec eax
je 0x439c05
dec eax
jne 0x439bfd
mov eax, edx
not eax
test al, 1
je 0x439c0d
and edx, 0xfffffffe
mov dword [ebp + 0x10], edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
jmp 0x439c7f
mov eax, edx
not eax
test al, 1
jne 0x439c26
call fcn.00425368
mov dword [eax], esi
call fcn.00425355
mov dword [eax], 0x16
call fcn.0042bf0b
jmp 0x439c5c
mov dword [ebp + 0x10], ecx
mov eax, edx
shr eax, 1
cmp eax, ecx
jb 0x439c34
mov dword [ebp + 0x10], eax
push dword [ebp + 0x10]
call fcn.004262fb
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp - 0x10], esi
jne 0x439c64
call fcn.00425355
mov dword [eax], 0xc
call fcn.00425368
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x43a0d2
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.004352de
add esp, 0x10
mov ecx, dword [edi]
mov dword [ebx + ecx + 0x28], eax
mov dword [ebx + ecx + 0x2c], edx
mov ecx, dword [edi]
mov eax, esi
add ecx, ebx
test byte [ecx + 4], 0x48
je 0x439d05
mov cl, byte [ecx + 5]
cmp cl, 0xa
je 0x439d05
cmp dword [ebp + 0x10], 0
je 0x439d05
dec dword [ebp + 0x10]
lea eax, [esi + 1]
cmp byte [ebp - 2], 0
mov byte [esi], cl
mov ecx, dword [edi]
mov dword [ebp - 0xc], 1
mov byte [ebx + ecx + 5], 0xa
je 0x439d05
mov ecx, dword [edi]
mov cl, byte [ebx + ecx + 0x25]
cmp cl, 0xa
je 0x439d05
cmp dword [ebp + 0x10], 0
je 0x439d05
mov byte [eax], cl
mov ecx, dword [edi]
inc eax
dec dword [ebp + 0x10]
cmp byte [ebp - 2], 1
mov dword [ebp - 0xc], 2
mov byte [ebx + ecx + 0x25], 0xa
jne 0x439d05
mov ecx, dword [edi]
mov cl, byte [ebx + ecx + 0x26]
cmp cl, 0xa
je 0x439d05
cmp dword [ebp + 0x10], 0
je 0x439d05
mov byte [eax], cl
mov ecx, dword [edi]
inc eax
dec dword [ebp + 0x10]
mov dword [ebp - 0xc], 3
mov byte [ebx + ecx + 0x26], 0xa
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push eax
mov eax, dword [edi]
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a09a
mov ecx, dword [ebp - 0x18]
or ecx, ecx
js 0x43a09a
cmp ecx, dword [ebp + 0x10]
ja 0x43a09a
mov eax, dword [edi]
add dword [ebp - 0xc], ecx
lea eax, [ebx + eax + 4]
test byte [eax], 0x80
je 0x439f2c
cmp byte [ebp - 2], 2
je 0x439f66
test ecx, ecx
je 0x439d60
cmp byte [esi], 0xa
jne 0x439d60
or byte [eax], 4
jmp 0x439d63
and byte [eax], 0xfb
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, esi
cmp esi, eax
mov dword [ebp + 0x10], esi
mov dword [ebp - 0xc], eax
jae 0x439e4a
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx]
cmp al, 0x1a
je 0x439e35
cmp al, 0xd
je 0x439d96
mov byte [esi], al
inc esi
inc ecx
mov dword [ebp + 0x10], ecx
jmp 0x439e27
mov eax, dword [ebp - 0xc]
dec eax
cmp ecx, eax
jae 0x439db6
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x439db1
add ecx, 2
mov dword [ebp + 0x10], ecx
mov byte [esi], 0xa
jmp 0x439e26
mov dword [ebp + 0x10], eax
jmp 0x439e23
lea eax, [ebp - 0x18]
inc dword [ebp + 0x10]
push 0
push eax
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [edi]
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
jne 0x439dde
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, eax
jne 0x439e23
cmp dword [ebp - 0x18], 0
je 0x439e23
mov eax, dword [edi]
test byte [ebx + eax + 4], 0x48
je 0x439e01
cmp byte [ebp - 1], 0xa
je 0x439dac
mov byte [esi], 0xd
mov eax, dword [edi]
mov cl, byte [ebp - 1]
mov byte [ebx + eax + 5], cl
jmp 0x439e26
cmp esi, dword [ebp - 0x10]
jne 0x439e0c
cmp byte [ebp - 1], 0xa
je 0x439dac
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004352de
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x439e27
mov byte [esi], 0xd
inc esi
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0x10], eax
jb 0x439d79
jmp 0x439e4a
mov eax, dword [edi]
lea eax, [ebx + eax + 4]
test byte [eax], 0x40
jne 0x439e45
or byte [eax], 2
jmp 0x439e4a
mov al, byte [ecx]
mov byte [esi], al
inc esi
mov eax, esi
sub eax, dword [ebp - 0x10]
cmp byte [ebp - 2], 1
mov dword [ebp - 0xc], eax
jne 0x439f2c
test eax, eax
je 0x439f2c
dec esi
mov cl, byte [esi]
test cl, cl
js 0x439e71
inc esi
jmp 0x439ef7
xor eax, eax
movzx ecx, cl
inc eax
jmp 0x439e88
cmp eax, 4
jg 0x439e91
cmp esi, dword [ebp - 0x10]
jb 0x439e91
dec esi
inc eax
movzx ecx, byte [esi]
cmp byte [ecx + 0x44bbe8], 0
je 0x439e79
mov dl, byte [esi]
movzx ecx, dl
movsx ecx, byte [ecx + 0x44bbe8]
or ecx, ecx
jne 0x439eae
call fcn.00425355
mov dword [eax], 0x2a
jmp 0x439f28
inc ecx
cmp ecx, eax
jne 0x439eb7
add esi, eax
jmp 0x439ef7
mov ecx, dword [edi]
test byte [ecx + ebx + 4], 0x48
je 0x439ee5
mov byte [ecx + ebx + 5], dl
inc esi
cmp eax, 2
jl 0x439ed3
mov dl, byte [esi]
inc esi
mov ecx, dword [edi]
mov byte [ebx + ecx + 0x25], dl
cmp eax, 3
jne 0x439ee1
mov ecx, dword [edi]
mov dl, byte [esi]
inc esi
mov byte [ebx + ecx + 0x26], dl
sub esi, eax
jmp 0x439ef7
neg eax
cdq
push 1
push edx
push eax
push dword [ebp + 8]
call fcn.004352de
add esp, 0x10
sub esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
shr eax, 1
push eax
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x439f4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042537b
pop ecx
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x439f3b
push eax
call fcn.004233c1
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0xfffffffe
jne 0x43a0d2
mov eax, dword [ebp - 0xc]
jmp 0x43a0d2
xor ecx, ecx
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov edx, dword [edi]
setne cl
add eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebx + edx + 0x30], ecx
jmp 0x439f2c
or ecx, ecx
je 0x439f75
cmp word [esi], 0xa
jne 0x439f75
or byte [eax], 4
jmp 0x439f78
and byte [eax], 0xfb
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
add eax, esi
mov dword [ebp + 0x10], esi
cmp esi, eax
mov dword [ebp - 0xc], eax
jae 0x43a08f
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
cmp ecx, 0x1a
je 0x43a076
cmp ecx, 0xd
je 0x439fb3
mov word [esi], cx
add esi, 2
add eax, 2
mov dword [ebp + 0x10], eax
jmp 0x43a068
mov ecx, dword [ebp - 0xc]
sub ecx, 2
cmp eax, ecx
jae 0x439fdb
lea ecx, [eax + 2]
cmp word [ecx], 0xa
jne 0x439fd3
sub eax, 0xfffffffc
mov dword [ebp + 0x10], eax
push 0xa
jmp 0x43a061
mov dword [ebp + 0x10], ecx
jmp 0x43a05f
lea eax, [ebp - 0x18]
add dword [ebp + 0x10], 2
push 0
push eax
lea eax, [ebp - 8]
push 2
push eax
mov eax, dword [edi]
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43a004
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43a05f
cmp dword [ebp - 0x18], 0
je 0x43a05f
mov eax, dword [edi]
test byte [ebx + eax + 4], 0x48
je 0x43a03b
cmp word [ebp - 8], 0xa
je 0x439fcc
push 0xd
pop eax
mov word [esi], ax
mov cl, byte [ebp - 8]
mov eax, dword [edi]
mov byte [ebx + eax + 5], cl
mov cl, byte [ebp - 7]
mov eax, dword [edi]
mov byte [ebx + eax + 0x25], cl
mov eax, dword [edi]
mov byte [ebx + eax + 0x26], 0xa
jmp 0x43a065
cmp esi, dword [ebp - 0x10]
jne 0x43a047
cmp word [ebp - 8], 0xa
je 0x439fcc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004352de
add esp, 0x10
cmp word [ebp - 8], 0xa
je 0x43a068
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0x10], eax
jb 0x439f8e
jmp 0x43a08f
mov ecx, dword [edi]
lea ebx, [ebx + ecx + 4]
test byte [ebx], 0x40
jne 0x43a086
or byte [ebx], 2
jmp 0x43a08f
mov ax, word [eax]
mov word [esi], ax
add esi, 2
sub esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
jmp 0x439f2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop edi
cmp eax, edi
jne 0x43a0be
call fcn.00425355
mov dword [eax], 9
call fcn.00425368
mov dword [eax], edi
jmp 0x439f28
cmp eax, 0x6d
jne 0x439f21
and dword [ebp - 0x14], 0
jmp 0x439f2c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret