Function at 0x410e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9f4
test byte [0x49109c], 0x40
push ebx
push esi
push edi
je 0x411047
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
push 0x20
push 4
push 0
push 1
push 0x40000000
push str.ADC_EventLog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x28], ebx
je 0x411047
xor eax, eax
mov ecx, 0xfa
lea edi, [esp + 0x230]
rep stosd dword es:[edi], eax
mov ecx, 0x3e
lea edi, [esp + 0x130]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x3e
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x130]
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push ecx
push edi
call fcn.00410b80
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0x38]
push edx
push esi
call fcn.00410d80
add esp, 0x10
cmp esi, 3
jne 0x410fc1
cmp edi, 0x10
jne 0x410f7c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [edx + 0x24]
mov ebx, dword [edx + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
xor eax, eax
mov ecx, 0xfa
lea edi, [esp + 0x618]
xor esi, esi
test ebx, ebx
rep stosd dword es:[edi], eax
jbe 0x410f2a
lea edi, [edx + 4]
nop
lea eax, [esp + 0x618]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410f00
sub eax, edx
mov edx, dword [edi]
push edx
push esi
lea eax, [esp + eax + 0x620]
push str.Index___i______ulDisplayType___d__n
push eax
call fcn.0045e6a9
add esp, 0x10
inc esi
add edi, 4
cmp esi, ebx
jb 0x410ef0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push ecx
push edx
movzx edx, word [esp + 0x26]
push ebx
lea eax, [esp + 0x3c]
push eax
movzx eax, word [esp + 0x2c]
push 3
lea ecx, [esp + 0x144]
push ecx
movzx ecx, word [esp + 0x32]
push 0x10
push edx
movzx edx, word [esp + 0x38]
push eax
push ecx
push edx
lea eax, [esp + 0x25c]
push str._02d:_02d:_02d:_03d_____state_d___s___option_d___s____Number_of_displays_d__ADC_Flag_d__Desktop_View_d__n_n
push eax
call fcn.0045e6a9
mov ebx, dword [esp + 0x5c]
add esp, 0x34
jmp 0x410ffd
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
movzx edx, word [esp + 0x22]
lea eax, [esp + 0x34]
push eax
movzx eax, word [esp + 0x24]
push 3
lea ecx, [esp + 0x13c]
push ecx
movzx ecx, word [esp + 0x2a]
push edi
push edx
movzx edx, word [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x254]
push str._02d:_02d:_02d:_03d_____state_d___s___option_d___s___Data_d__n_n
push eax
call fcn.0045e6a9
add esp, 0x2c
jmp 0x410ffd
movzx eax, word [esp + 0x1e]
lea ecx, [esp + 0x30]
push ecx
movzx ecx, word [esp + 0x20]
push esi
lea edx, [esp + 0x138]
push edx
movzx edx, word [esp + 0x26]
push edi
push eax
movzx eax, word [esp + 0x2c]
push ecx
push edx
push eax
lea ecx, [esp + 0x250]
push str._02d:_02d:_02d:_03d_____state_d___s___option_d___s___n_n
push ecx
call fcn.0045e6a9
add esp, 0x28
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x230]
mov dword [esp + 0x24], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411020
sub eax, edx
push 0
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret