Function at 0x404b70
Capabilities:
Read .ini file
Write file on windows

Disassembly:
sub esp, 0x11c
mov al, byte [0x45b398]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test al, 1
mov dword [esp + 0x18], ebp
jne 0x404baa
mov bl, al
mov eax, dword [0x428644]
or bl, 1
push 0xff
push eax
mov byte [0x45b398], bl
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [0x45b39c], eax
mov eax, dword [ebp + 0x354]
xor ebx, ebx
cmp eax, ebx
je 0x404f1b
mov ecx, dword [0x45b39c]
mov esi, dword [esp + 0x130]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push ebx
push 0x172
push esi
call edi
push 0x64
mov dword [0x428ad0], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x428ad0]
push edx
push ebx
push 0x172
push esi
call edi
mov esi, dword [ebp + 0x354]
mov eax, dword [esi + 0x21a8]
cmp eax, 2
mov dword [esp + 0x28], eax
jne 0x404c45
lea edi, [esi + 0x256120]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x21a8], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esi + 0x256138]
cmp esi, ebx
je 0x404c3a
mov eax, dword [esi]
push eax
call dword [sym.imp.WINMM.dll_waveOutPause]
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x354]
mov ebp, dword [eax + 0x2118]
mov edi, dword [eax + 0x211c]
add eax, 0x21bc
mov dword [esp + 0x24], edi
lea esi, [ebp + ebp*2]
mov dword [esp + 0x20], eax
mov ecx, esi
imul ecx, edi
push ecx
call fcn.00417cff
push esi
mov dword [esp + 0x18], eax
call fcn.00417cff
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
push edx
push eax
push edi
push ebp
call fcn.00405190
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x3c]
mov byte [esp + 0x88], bl
rep stosd dword es:[edi], eax
mov ecx, dword [0x428644]
lea edi, [esp + 0x89]
mov dword [esp + 0x44], ecx
mov ecx, 8
rep stosd dword es:[edi], eax
push str.dvrnet.ini
lea edx, [esp + 0x8c]
push 0x24
push edx
stosw word es:[edi], ax
push 0x427338
push str.root
push str.PATH
mov dword [esp + 0x54], 0x4c
mov dword [esp + 0x88], 0x2000
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x60], str..bmp
mov dword [esp + 0x90], 0x428ac4
mov dword [esp + 0x6c], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + eax + 0x88]
mov edi, str._bmp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0xac], bl
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x58], edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
lea edi, [esp + 0xad]
mov dword [esp + 0x68], ecx
mov ecx, 0x1f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x3c]
mov dword [esp + 0x5c], 0x80
push eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x404ebc
lea edi, [esp + 0xac]
or ecx, 0xffffffff
xor eax, eax
push 0x28
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x427310
push 0x40
lea edx, [esp + ecx + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push 0x80
mov dword [esi + 4], ebp
imul ebp, eax
push 2
push ebx
push ebx
lea edx, [esp + 0xc0]
lea ecx, [ebp + ebp*2]
push 0xc0000000
push edx
mov dword [esi], 0x28
mov dword [esi + 8], eax
mov word [esi + 0xc], 1
mov word [esi + 0xe], 0x18
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov word [esp + 0x2c], 0x4d42
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea edx, [ecx + eax*4]
mov eax, dword [esi + 0x14]
mov word [esp + 0x36], bx
mov word [esp + 0x38], bx
lea ecx, [edx + eax + 0xe]
mov dword [esp + 0x32], ecx
mov edx, dword [esi + 0x20]
mov eax, dword [esi]
lea ecx, [eax + edx*4 + 0xe]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push 0xe
push eax
push edi
mov dword [esp + 0x4a], ecx
call ebp
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x14]
push ebx
push ecx
lea eax, [edx*4 + 0x28]
push eax
push esi
push edi
call ebp
push ebx
lea ecx, [esp + 0x18]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push edi
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00417cf4
mov edx, dword [esp + 0x14]
push edx
call fcn.00417cf4
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
mov ebp, 2
cmp eax, ebp
jne 0x404f1b
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x354]
lea edi, [esi + 0x256120]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x21a8]
mov dword [esi + 0x21ac], 1
cmp eax, ebx
mov dword [esi + 0x21a8], ebp
push edi
jne 0x404f15
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.00402a50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 4