Function at 0x4052f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571bcb
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x5d9ff4]
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 dword [ebp - 0x200], ecx
push 0xd8
lea eax, [ebp - 0x1ec]
push 0
push eax
call fcn.005516b0
add esp, 0xc
lea ecx, [ebp - 0x1ec]
push 0
push 0x84
call fcn.0041d6c1
mov dword [ebp - method.CPinDlg.virtual_0], vtable.CPinDlg.0
call fcn.0041a104
mov ecx, eax
test ecx, ecx
je 0x405689
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10d]
mov esi, dword [ebp - 0x11c]
mov ecx, 0x1c
mov word [ebp - 0x110], 0x501b
mov byte [ebp - 0x10e], 0x53
nop dword [eax + eax]
mov eax, esi
lea edx, [edx + 1]
shr eax, cl
and al, 0xf
add al, 0x30
sub ecx, 4
mov byte [edx - 1], al
jns 0x4053a0
lea ebx, [edx + 1]
mov byte [edx], 0x41
mov byte [ebx], 0xa
lea eax, [ebp - 0x110]
inc ebx
sub ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1f4], eax
nop word [eax + eax]
lea ecx, [ebp - 0x1ec]
call fcn.00415c90
cmp eax, 3
jne 0x4054c7
push 0
push 4
push 0x5bb418
call fcn.00419005
cmp eax, 6
jne 0x4053e0
mov eax, dword [ebp - 0x118]
cmp dword [eax - 4], 1
jle 0x405427
push dword [eax - 0xc]
lea ecx, [ebp - 0x118]
call fcn.00402150
mov eax, dword [ebp - 0x118]
push eax
call fcn.004059c0
mov edi, eax
lea esi, [ebp - 0x10d]
mov ecx, 0x1c
or eax, 0xffffffff
nop dword [eax]
mov edx, eax
lea esi, [esi + 1]
shr edx, cl
and dl, 0xf
add dl, 0x30
sub ecx, 4
mov byte [esi - 1], dl
jns 0x405440
cmp edi, 0xffffffff
je 0x4054b4
xor esi, esi
nop dword [eax]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4054ad
cmp dword [ebp - 0x114], 0xd
jne 0x4054ad
inc esi
cmp esi, 0xc
jl 0x405460
push edi
call dword [ebp - 0x1f4]
push 0
push 0
push str.Die_Sequenz_zum_Entfernen_wurde_an_den_VDAI_Port_gesendet.
call fcn.00419005
jmp 0x4053e0
push edi
call dword [ebp - 0x1f4]
push 0
push 0
push str.Am_VDAI_Port_ist_ein_Fehler_aufgetreten_
call fcn.00419005
jmp 0x4053e0
cmp eax, 2
jne 0x4054d4
lea ebx, [eax - 1]
jmp 0x405611
mov esi, dword [ebp - 0x11c]
lea edx, [ebp - 0x10d]
mov ecx, 0x1c
mov eax, esi
lea edx, [edx + 1]
shr eax, cl
and al, 0xf
add al, 0x30
sub ecx, 4
mov byte [edx - 1], al
jns 0x4054e5
mov eax, dword [ebp - 0x118]
cmp dword [eax - 4], 1
jle 0x405518
push dword [eax - 0xc]
lea ecx, [ebp - 0x118]
call fcn.00402150
mov eax, dword [ebp - 0x118]
push eax
call fcn.004059c0
mov dword [ebp - 0x1f8], eax
cmp eax, 0xffffffff
jne 0x405533
mov ebx, 3
jmp 0x405611
call fcn.0042574f
mov ecx, dword [eax + 4]
call fcn.0041c0a6
mov esi, dword [ebp - 0x1f8]
lea eax, [ebp - 0x114]
push 0
push eax
push dword [ebp - 0x1fc]
lea eax, [ebp - 0x110]
mov ebx, 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4055fa
push 0
lea eax, [ebp - 0x114]
push eax
push 0x1cc
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4055fa
mov edx, dword [ebp - 0x114]
cmp edx, 0xe6
jb 0x4055f5
lea ecx, [ebp - 0x110]
xor edi, edi
mov esi, ecx
test edx, edx
je 0x4055fa
nop dword [eax]
mov al, byte [ecx]
dec edx
inc edi
cmp al, 0xfe
jne 0x4055c8
inc ecx
test edx, edx
je 0x4055d4
dec edx
cmp byte [ecx], 0
setne al
add al, 0xfe
jmp 0x4055cc
cmp esi, ecx
je 0x4055ce
mov byte [esi], al
inc esi
inc ecx
test edx, edx
jne 0x4055b0
cmp edi, 0xe6
jne 0x4055fa
mov edi, dword [ebp - 0x200]
lea esi, [ebp - 0x110]
mov ecx, 0x39
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x4055fa
mov ebx, 2
push dword [ebp - 0x1f8]
call dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1ed]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x118]
mov dword [ebp - method.CPinDlg.virtual_0], vtable.CPinDlg.0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405640
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x12c]
call fcn.0041b951
lea ecx, [ebp - 0x138]
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
call fcn.00402400
lea ecx, [ebp - 0x1ec]
call fcn.0041573a
mov eax, ebx
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.0054eba5
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022d0
int3