Function at 0x4f5420
Capabilities:
Contain obfuscated stackstrings
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523b3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2bc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, str.TamnunSvc
lea ecx, [ebp - 0x34]
call fcn.0040fae0
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x34]
push eax
or eax, 0xffffffff
mov ecx, 0x572ad4
call fcn.00411b10
mov byte [ebp - 4], 0
lea esi, [ebp - 0x34]
call fcn.004150b0
call fcn.0041acc0
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00461c90
mov byte [ebp - 4], 2
push 0x573e0c
push str.ErrorLevel
mov ecx, str.SoftwareABG_Ltd.TamnunClientActiveProcessesTamnunSnd
call fcn.00466c20
add esp, 0xc
test eax, eax
je 0x4f54b5
mov dword [0x573e0c], 2
lea edx, [ebp - 0x50]
push edx
call fcn.00461880
add esp, 4
mov byte [ebp - 4], 3
mov edi, eax
mov esi, 0x572bbc
call fcn.00411aa0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x50]
call fcn.004150b0
push str.TamnunSnd.ini
push 0x572bbc
lea eax, [ebp - 0x50]
push eax
call fcn.00413af0
add esp, 0xc
mov byte [ebp - 4], 4
mov edi, eax
mov esi, 0x572b68
call fcn.00411aa0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x50]
call fcn.004150b0
mov eax, str.TamnunSnd.log
lea ecx, [ebp - 0xc4]
call fcn.0040fae0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xc4]
lea edx, [ebp - 0xe0]
call fcn.0044c770
call fcn.00435180
call fcn.004f84b0
call fcn.004f34d0
call fcn.00503380
push 0x572b14
push str.TamnunSnd_Main_program_Rev
lea ecx, [ebp - 0x50]
push ecx
call fcn.00414000
mov byte [ebp - 4], 6
push 1
push 1
push eax
push 0x318
push str.WinMain
call fcn.0044d970
add esp, 0x20
mov byte [ebp - 4], 5
lea esi, [ebp - 0x50]
call fcn.004150b0
call fcn.004f3f30
lea edx, [ebp - 0x2c8]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4f560b
mov eax, str.WSAStartup_failed
lea ecx, [ebp - 0x34]
call fcn.0040fae0
mov byte [ebp - 4], 7
push 0
push 0x20000000
lea eax, [ebp - 0x34]
push eax
push 0x32a
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 5
lea esi, [ebp - 0x34]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0xe0]
call fcn.004150b0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x528928
lea ecx, [ebp - 0x11c]
call fcn.0040fae0
mov bl, 8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x50]
push ecx
call fcn.004187d0
add esp, 4
mov byte [ebp - 4], 9
mov edi, eax
mov esi, 0x572c10
call fcn.00411aa0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x50]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0x11c]
call fcn.004150b0
lea edx, [ebp - 0x50]
push edx
call fcn.00461d90
mov byte [ebp - 4], 0xa
push str.tam9
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004139a0
add esp, 0x10
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x50]
call fcn.004150b0
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00442210
add esp, 4
test al, al
jne 0x4f56b7
mov eax, str.Database_not_found
lea ecx, [ebp - 0x34]
call fcn.0040fae0
mov byte [ebp - 4], 0xd
push 0
push 1
lea edx, [ebp - 0x34]
push edx
push 0x335
jmp 0x4f56eb
lea ecx, [ebp - 0xa8]
call fcn.004e6fd0
test al, al
jne 0x4f58e3
mov eax, str.Database_corrupted
lea ecx, [ebp - 0x34]
call fcn.0040fae0
mov byte [ebp - 4], 0xe
push 0
push 0x20000000
lea eax, [ebp - 0x34]
push eax
push 0x33a
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x34]
call fcn.004150b0
call fcn.004f5300
test al, al
jne 0x4f578c
mov eax, str.Copy_database_file_failed
lea ecx, [ebp - 0x70]
call fcn.0040fae0
mov byte [ebp - 4], 0xf
push 0
push 0x20000000
lea ecx, [ebp - 0x70]
push ecx
push 0x342
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x70]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0xe0]
call fcn.004150b0
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp - 0x50]
push edx
call fcn.00461bd0
mov byte [ebp - 4], 0x10
push str.tam9
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004139a0
add esp, 0x10
mov byte [ebp - 4], 0x12
lea esi, [ebp - 0x50]
call fcn.004150b0
push 0
sub esp, 0x1c
mov dword [ebp - 0x18], esp
lea ecx, [ebp - 0x34]
mov esi, esp
call fcn.0040fab0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x8c]
push ecx
mov byte [ebp - 4], 0x12
call fcn.00418a80
mov bl, 0x14
mov byte [ebp - 4], bl
add esp, 8
mov dword [ebp - 0x18], esp
lea ecx, [ebp - 0x8c]
mov esi, esp
call fcn.0040fab0
mov byte [ebp - 4], 0x15
sub esp, 0x1c
mov dword [ebp - 0x54], esp
mov eax, str.SoftwareABG_Ltd.TamnunClientDB
mov ecx, esp
call fcn.0040fae0
mov byte [ebp - 4], 0x16
sub esp, 0x1c
mov dword [ebp - 0x14], esp
mov eax, 0x52e62c
mov ecx, esp
call fcn.0040fae0
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], bl
call fcn.00418db0
lea edx, [ebp - 0x8c]
push edx
push str.DB_installed_successfully_:
lea eax, [ebp - 0x50]
push eax
call fcn.00414000
add esp, 0x60
mov byte [ebp - 4], 0x18
push 0
push 1
push eax
push 0x349
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x50]
call fcn.004150b0
lea ecx, [ebp - 0xa8]
call fcn.004e6fd0
test al, al
jne 0x4f58da
mov byte [ebp - 4], 0x12
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x34]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0xe0]
call fcn.004150b0
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], 0x12
jmp 0x4f5b4c
push 0xd4
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x19
test eax, eax
je 0x4f5906
push eax
call fcn.0042d060
mov esi, eax
jmp 0x4f5908
xor esi, esi
mov byte [ebp - 4], 0xc
mov ecx, esi
call fcn.0042d3d0
mov bl, al
test esi, esi
je 0x4f5929
push esi
call fcn.0042d2a0
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
jne 0x4f5b63
call fcn.004ecf90
call fcn.004f5300
test al, al
jne 0x4f59bd
mov eax, str.Copy_database_file_failed
lea ecx, [ebp - 0x70]
call fcn.0040fae0
mov byte [ebp - 4], 0x1a
push 0
push 0x20000000
lea ecx, [ebp - 0x70]
push ecx
push 0x35a
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x70]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0xe0]
call fcn.004150b0
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp - 0x50]
push edx
call fcn.00461bd0
mov byte [ebp - 4], 0x1b
push str.tam9
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004139a0
add esp, 0x10
mov byte [ebp - 4], 0x1d
lea esi, [ebp - 0x50]
call fcn.004150b0
push 0
sub esp, 0x1c
mov dword [ebp - 0x14], esp
lea ecx, [ebp - 0x34]
mov esi, esp
call fcn.0040fab0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x8c]
push ecx
mov byte [ebp - 4], 0x1d
call fcn.00418a80
mov bl, 0x1f
mov byte [ebp - 4], bl
add esp, 8
mov dword [ebp - 0x14], esp
lea ecx, [ebp - 0x8c]
mov esi, esp
call fcn.0040fab0
mov byte [ebp - 4], 0x20
sub esp, 0x1c
mov dword [ebp - 0x54], esp
mov eax, str.SoftwareABG_Ltd.TamnunClientDB
mov ecx, esp
call fcn.0040fae0
mov byte [ebp - 4], 0x21
sub esp, 0x1c
mov dword [ebp - 0x18], esp
mov eax, 0x52e62c
mov ecx, esp
call fcn.0040fae0
mov byte [ebp - 4], 0x22
mov byte [ebp - 4], bl
call fcn.00418db0
lea edx, [ebp - 0x8c]
push edx
push str.DB_installed_successfully_:
lea eax, [ebp - 0x50]
push eax
call fcn.00414000
add esp, 0x60
mov byte [ebp - 4], 0x23
push 0
push 1
push eax
push 0x361
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x50]
call fcn.004150b0
lea ecx, [ebp - 0xa8]
call fcn.004e6fd0
test al, al
jne 0x4f5b48
mov eax, str.Database_is_corrupted
lea ecx, [ebp - 0x70]
call fcn.0040fae0
mov byte [ebp - 4], 0x24
push 0
push 0x20000000
lea ecx, [ebp - 0x70]
push ecx
push 0x365
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x70]
call fcn.004150b0
mov byte [ebp - 4], 0x1d
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x34]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0xe0]
call fcn.004150b0
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], 0x1d
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x34]
call fcn.004150b0
call fcn.004f4900
test al, al
jne 0x4f5e07
mov eax, str.LoadReportsProperties_failed
lea ecx, [ebp - 0x70]
call fcn.0040fae0
mov byte [ebp - 4], 0x25
push 0
push 0x20000000
lea edx, [ebp - 0x70]
push edx
push 0x36d
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x70]
call fcn.004150b0
call fcn.004ecf90
call fcn.004f5300
test al, al
jne 0x4f5c37
mov eax, str.Copy_database_file_failed
lea ecx, [ebp - 0x70]
call fcn.0040fae0
mov byte [ebp - 4], 0x26
push 0
push 0x20000000
lea eax, [ebp - 0x70]
push eax
push 0x372
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x70]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0xe0]
call fcn.004150b0
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x50]
push ecx
call fcn.00461bd0
mov byte [ebp - 4], 0x27
push str.tam9
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.004139a0
add esp, 0x10
mov bl, 0x29
mov byte [ebp - 4], bl
lea esi, [ebp - 0x50]
call fcn.004150b0
push 0
sub esp, 0x1c
mov dword [ebp - 0x14], esp
lea ecx, [ebp - 0x34]
mov esi, esp
call fcn.0040fab0
mov byte [ebp - 4], 0x2a
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], bl
call fcn.00418a80
mov byte [ebp - 4], 0x2b
add esp, 8
mov dword [ebp - 0x14], esp
lea ecx, [ebp - 0x8c]
mov esi, esp
call fcn.0040fab0
mov byte [ebp - 4], 0x2c
sub esp, 0x1c
mov dword [ebp - 0x54], esp
mov eax, str.SoftwareABG_Ltd.TamnunClientDB
mov ecx, esp
call fcn.0040fae0
mov byte [ebp - 4], 0x2d
sub esp, 0x1c
mov dword [ebp - 0x18], esp
mov eax, 0x52e62c
mov ecx, esp
call fcn.0040fae0
mov byte [ebp - 4], 0x2e
mov byte [ebp - 4], 0x2b
call fcn.00418db0
lea ecx, [ebp - 0x8c]
push ecx
push str.DB_installed_successfully_:
lea edx, [ebp - 0x50]
push edx
call fcn.00414000
add esp, 0x60
mov byte [ebp - 4], 0x2f
push 0
push 1
push eax
push 0x379
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0x2b
lea esi, [ebp - 0x50]
call fcn.004150b0
lea ecx, [ebp - 0xa8]
call fcn.004e6fd0
test al, al
jne 0x4f5d85
mov byte [ebp - 4], bl
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x34]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0xe0]
call fcn.004150b0
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004f4900
test al, al
jne 0x4f5ded
mov byte [ebp - 4], bl
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x34]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0xe0]
call fcn.004150b0
mov eax, 0xfffffffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], bl
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x34]
call fcn.004150b0
push 0x58
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x30
test eax, eax
je 0x4f5e27
push eax
call fcn.00502a90
mov esi, eax
jmp 0x4f5e29
xor esi, esi
mov byte [ebp - 4], 0xc
push esi
mov eax, str.ThreadManager
call fcn.00507020
push esi
push esi
call fcn.00507050
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x100]
push eax
call esi
test eax, eax
je 0x4f5e78
lea ecx, [ebp - 0x100]
push ecx
call edi
lea edx, [ebp - 0x100]
push edx
call ebx
jmp 0x4f5e51
mov eax, str.GetMessage_returned_false._EXITING
lea ecx, [ebp - 0x70]
call fcn.0040fae0
mov byte [ebp - 4], 0x31
push 0
push 0x20000000
lea eax, [ebp - 0x70]
push eax
push 0x38e
push str.WinMain
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x70]
call fcn.004150b0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [ebp - 4], 5
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0xe0]
call fcn.004150b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10