Function at 0x2068a8
Capabilities:
Terminate process

Disassembly:
push esi
push edi
sub esp, 0x224
and eax, 1
mov esi, section..data
mov edi, 0xffffffff
xchg dword [esi + 0x24], edi
test edi, edi
jne 0x2068b8
mov word [esi + 0x60c], ax
mov dword [esi + 0x612], ebx
mov dword [esi + 0x618], ecx
mov word [esi + 0x616], dx
mov dword [esi + 0x60e], 0
mov dword [esi + 0x61c], esp
mov edx, esp
push ebx
call fcn.00207c58
pop ebx
or ebx, ebx
jne 0x206903
or al, al
je 0x206b12
or ah, ah
jne 0x206b12
mov ax, word [esi + 0x616]
mov ebx, dword [esi + 0x618]
test ah, 4
jne 0x206927
test ah, 0x2a
je 0x206927
mov ebx, 1
mov ax, word [ebp - 0x46]
test ax, ax
js 0x206b1e
mov dword [esi + 0x618], ebx
cmp ebx, 1
jl 0x206b16
add ebx, 0x44
push esi
call fcn.002086f4
pop esi
jae 0x206b1a
mov ecx, ebx
call fcn.00208620
jb 0x206b24
mov dword [esi + 0x60e], edx
call fcn.00208770
jb 0x206b24
cld
xor eax, eax
mov ecx, 0x20
push edi
add edi, 4
rep stosw word es:[edi], ax
pop edi
mov bx, word [esi + 0x616]
mov eax, dword [esi + 0x612]
test eax, eax
jne 0x2069b9
call fcn.00206b52
jae 0x2069b9
test bh, 0x10
jne 0x206b22
test bl, 0x20
jne 0x206b0a
test bl, 0x40
je 0x206b0a
xor bl, 0x40
jmp 0x206988
mov edx, eax
mov ax, 1
test dword [esi + 0x612], 0xffffffff
je 0x2069cf
or ax, 4
mov dword [edi + 6], edx
mov word [edi + 0xa], 1
mov word [edi + 0x2c], ax
mov byte [edi + 0xc], bh
mov byte [edi + 0xe], bl
mov byte [edi + 0x20], 0xff
mov ax, word [ebp - 0x46]
mov word [edi + 4], ax
mov eax, dword [esi + 0x618]
mov dword [edi + 0x1c], eax
mov ax, word [esi + 0x60c]
mov word [edi + 0x2e], ax
push edx
mov edx, dword [sym.imp.KERNEL32.DLL_GetFileType]
call fcn.0020b018
cmp eax, 1
je 0x206a19
mov word [edi + 0xa], 2
cmp bh, 2
jne 0x206a4d
cmp word [edi + 0xa], 2
je 0x206adc
call fcn.00206ba1
jb 0x206b0a
push dword [edi + 6]
mov edx, dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
call fcn.0020b018
jae 0x206adc
jmp 0x206b0a
test bh, 8
jne 0x206a95
test bh, 4
jne 0x206abe
test bh, 1
jne 0x206a63
test bh, 0x10
jne 0x206aab
jmp 0x206ad5
cmp word [edi + 0xa], 2
je 0x206a93
call fcn.00206ba1
jb 0x206b0a
push 0
lea eax, [edi + 0x28]
push eax
mov eax, dword [edi + 0x1c]
push eax
lea eax, [edi + 0x44]
push eax
push dword [edi + 6]
mov edx, dword [sym.imp.KERNEL32.DLL_ReadFile]
call fcn.0020b018
jb 0x206b0a
jmp 0x206adc
call fcn.00206ba5
jb 0x206b0a
cmp word [edi + 0xa], 1
jne 0x206b0e
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
jmp 0x206adc
cmp word [edi + 0xa], 2
je 0x206adc
mov eax, dword [edi + 6]
xor ecx, ecx
call fcn.0020a507
jmp 0x206b22
cmp dword [edi + 0x1c], 0x8000
ja 0x206b16
test word [edi + 0x2e], 0xffff
jne 0x206ad5
dec dword [edi + 0x14]
dec dword [edi + 0x18]
call fcn.00206ba1
jb 0x206b0a
mov ebx, edi
mov ecx, dword [esp]
call fcn.00208850
jb 0x206b24
mov dword [ebx + 0x10], edx
mov dword [esi + 0x24], 0
cld
lea esi, [esp + 4]
shr ecx, 1
rep movsd dword es:[edi], dword [esi]
adc cl, 0
rep movsw word es:[edi], word [esi]
add esp, 0x224
pop edi
pop esi
ret
mov al, dl
mov dx, 0x36b0
mov al, 0x36
mov dx, 0x40b0
mov al, 0x40
mov dx, 0x5b0
mov al, 5
mov dx, 0x37b0
mov al, 0x37
mov dx, 0x34b0
mov al, 0x34
mov dx, 0x45b0
mov al, 0x45
mov edx, dword [esi + 0x60e]
test edx, edx
je 0x206b3e
push esi
mov esi, edx
push eax
call fcn.002087bb
call fcn.00208654
pop eax
pop esi
mov dword [esi + 0x24], 0
add esp, 0x224
pop edi
pop esi
jmp fcn.00204c80