Function at 0x4a5648
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x864], esi
mov dword [0x57555c], esi
call fcn.004a50b1
push 2
mov dword [esi + 0x16cfc], 0x258
lea ebx, [esi + 4]
push dword [esi + 0x16cfc]
mov dword [esi + 0x16cf8], 0x384
xor edi, edi
push dword [esi + 0x16cf8]
mov dword [ebp - 0x86c], ebx
push edi
push edi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowPos]
push edi
mov ecx, ebx
call fcn.0041b9d6
mov esi, dword [0x577c8c]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0xc
call ebx
push eax
push 0xb
call ebx
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 1
push 0x80
push esi
call edi
push eax
mov eax, dword [ebp - 0x86c]
push 1
push 0x80
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [0x577c8c]
push 0
push 0x32
call ebx
push eax
push 0x31
call ebx
push eax
push 1
mov ebx, 0x80
push ebx
push esi
call edi
mov edi, dword [ebp - 0x86c]
push eax
push 0
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push str.360_360_
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x574074
call fcn.0048e6b6
mov ebx, dword [ebp - 0x864]
mov esi, eax
lea eax, [ebp - 0x864]
push eax
lea ecx, [ebx + 0x20]
mov dword [ebp - 0x864], ecx
lea ecx, [esi + 4]
call fcn.0048cb21
lea ecx, [ebx + 0x24]
lea eax, [ebp - 0x864]
mov dword [ebp - 0x864], ecx
push eax
lea ecx, [esi + 0x10]
call fcn.0048cb21
push dword [edi]
lea ecx, [ebx + 0x16c8c]
call fcn.004a6dbb
and dword [ebp - 0x874], 0
lea eax, [ebx + 0x34]
mov esi, ebx
neg esi
sbb esi, esi
and esi, eax
lea eax, [ebp - 0x874]
push eax
push esi
push dword [edi]
mov dword [ebp - 0x864], esi
call fcn.0041ab15
add esp, 0xc
mov dword [0x576d78], eax
test eax, eax
je 0x4a5d93
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
cmp eax, 5
jb 0x4a5d93
push esi
lea ecx, [ebx + 0xa8]
call fcn.004b5bd6
push 0x84
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x4a57ec
push dword [edi]
mov ecx, eax
call fcn.004dd137
jmp 0x4a57ee
xor eax, eax
mov dword [ebx + 0x16d28], eax
test eax, eax
je 0x4a5805
mov ecx, eax
call fcn.004dd38f
mov dword [ebx + 0x16d2c], eax
call fcn.0041c505
mov ecx, eax
test ecx, ecx
je 0x4a5815
mov eax, dword [ecx]
push ecx
call dword [eax]
mov ecx, dword [0x574070]
mov dword [0x574cd4], eax
push dword [edi]
lea ecx, [ecx + 0x20]
call fcn.0041e63a
lea eax, [ebp - 0x868]
mov ecx, ebx
push eax
call fcn.004a4eaf
mov esi, dword [ebp - 0x868]
lea eax, [ebx + 0x16d00]
push esi
push str._._size9_color_s___._360
push eax
call fcn.00415254
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
test eax, eax
je 0x4a5870
push esi
push dword [ebp - 0x864]
mov ecx, eax
push dword [edi]
call fcn.004e2a2a
jmp 0x4a5872
xor eax, eax
mov dword [ebx + 0x16d24], eax
call fcn.0041b2bb
push dword [edi]
mov dword [ebp - 0x870], eax
lea ecx, [eax + 4]
call fcn.0041e63a
push dword [ebp - 0x870]
call fcn.0049f8cf
mov ecx, dword [ebx + 0x16d24]
test eax, eax
js 0x4a58b1
push str.ck_WvU_.
call fcn.004e2e1c
jmp 0x4a5964
push 0
call fcn.004e2e1c
lea eax, [ebp - 0x860]
push eax
call fcn.00459e29
lea ecx, [ebp - 0x860]
mov dword [esp], 0x53fd38
call fcn.004a728e
test eax, eax
jne 0x4a5959
mov esi, 0x53fd58
mov dword [ebp - 0x848], 1
lea edi, [ebp - 0x844]
push 0x36
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x83a]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x848]
push str.safemon_skin_browserfixSearchResultFixBtn.png
push 0
push 0x40
push 1
push eax
push ecx
mov ecx, esp
push 0x53fd68
call fcn.00402af5
push ecx
mov ecx, esp
push str.360_360_
call fcn.00402af5
mov edi, dword [ebp - 0x86c]
push dword [edi]
call fcn.004dab18
add esp, 0x20
cmp eax, 1
jne 0x4a5953
push dword [edi]
mov ecx, dword [ebp - 0x870]
call fcn.004a037c
mov esi, dword [ebp - 0x868]
lea ecx, [ebp - 0x860]
call fcn.00410d88
xor eax, eax
push eax
push eax
push dword [edi]
push 0x4a5080
push eax
push eax
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
test eax, eax
je 0x4a5984
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7fbc
push dword [edi]
lea ecx, [ebp - 0x884]
call fcn.0041b8c7
mov ecx, dword [ebp - 0x878]
test ecx, ecx
je 0x4a59dc
mov eax, dword [ecx]
xor edi, edi
push 1
push edi
push 1
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x878]
push edi
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [ebx + 0x16cf8]
push edi
push 0x1f
push 0x3c
push edi
sub eax, 0x40
push eax
mov eax, dword [ebp - 0x878]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.004a4a7c
push dword [ebp - 0x864]
lea ecx, [ebx + 0x16d04]
call fcn.0040eaab
cmp dword [0x56a970], 8
mov ecx, 0x56a95c
jb 0x4a5a08
mov ecx, dword [0x56a95c]
lea edi, [ebx + 0x34]
mov eax, dword [edi]
push 0
push ecx
push 0x50
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x86c]
mov ecx, dword [ebx + 0x16d20]
push dword [eax]
call fcn.004a7378
mov ecx, dword [0x569790]
cmp ecx, 0x3a
jne 0x4a5a42
push 1
push 0x56a944
push ecx
jmp 0x4a5b2b
cmp ecx, 0x51
jne 0x4a5a65
cmp dword [0x56a910], 8
mov ecx, 0x56a8fc
jb 0x4a5a5b
mov ecx, dword [0x56a8fc]
push 0
push ecx
push 0x51
jmp 0x4a5b2b
cmp ecx, 0x45
jne 0x4a5a7a
mov dword [ebx + 0x98], 0x7b
mov ecx, dword [0x569790]
cmp dword [0x576d84], 0
je 0x4a5b21
push dword [0x5771dc]
call fcn.00416dce
pop ecx
test eax, eax
jne 0x4a5ac8
push dword [0x5771dc]
call fcn.004a5284
pop ecx
test eax, eax
jne 0x4a5ac8
and dword [0x576d74], eax
push 0x30
pop ecx
push 0
push dword [0x576d84]
mov dword [0x569790], ecx
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xc]
jmp 0x4a5b18
mov eax, dword [edi]
mov ecx, edi
push 0x30
call dword [eax + 8]
test eax, eax
je 0x4a5ada
lea ecx, [eax - 0x20]
jmp 0x4a5adc
xor ecx, ecx
test ecx, ecx
je 0x4a5aed
mov eax, dword [0x576d84]
mov dword [ecx + 0x38], eax
call fcn.004e61e9
push dword [0x5771dc]
call fcn.004a5284
pop ecx
test eax, eax
je 0x4a5b18
push 0x527fb4
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push 0x527fb4
mov ecx, 0x5771dc
call fcn.00404550
and dword [0x576d84], 0
jmp 0x4a5b32
cmp ecx, 0x50
je 0x4a5b38
push 0
push 0
push ecx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov ecx, dword [0x569790]
cmp ecx, 0xffffffff
je 0x4a5b9a
call fcn.004a8014
mov dword [ebp - 0x864], eax
test eax, eax
je 0x4a5b9a
mov ecx, eax
call fcn.004a81e0
test eax, eax
je 0x4a5b9a
mov ecx, dword [0x5740b0]
xor eax, eax
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x854]
push eax
call fcn.0045d265
mov ecx, dword [ebp - 0x864]
lea eax, [ebp - 0x854]
push eax
call fcn.004a90df
lea ecx, [ebp - 0x854]
call fcn.0041b815
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._tab
push eax
call sub.msvcrt.dll_wcsstr
mov dword [ebp - 0x864], eax
pop ecx
pop ecx
test eax, eax
je 0x4a5cab
push str._tab
call sub.msvcrt.dll_wcslen
mov ecx, dword [ebp - 0x864]
and dword [ebp - 0x850], 0
push 0x20
mov dword [ebp - 0x84c], 7
lea eax, [ecx + eax*2]
xor ecx, ecx
push eax
mov dword [ebp - 0x868], eax
mov word [ebp - 0x860], cx
call sub.msvcrt.dll_wcschr
add esp, 0xc
test eax, eax
jne 0x4a5c0b
push dword [ebp - 0x868]
call sub.msvcrt.dll_wcslen
pop ecx
jmp 0x4a5c13
sub eax, dword [ebp - 0x868]
sar eax, 1
push eax
push dword [ebp - 0x868]
lea ecx, [ebp - 0x860]
call fcn.00410dd4
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
jb 0x4a5c3a
mov eax, dword [ebp - 0x860]
push eax
call sub.msvcrt.dll__wtoi
pop ecx
sub eax, 1
je 0x4a5c82
sub eax, 1
je 0x4a5c7b
sub eax, 1
je 0x4a5c74
sub eax, 1
je 0x4a5c6d
sub eax, 1
je 0x4a5c66
sub eax, 1
jne 0x4a5ca0
mov eax, 0x617
jmp 0x4a5c87
mov eax, 0x619
jmp 0x4a5c87
mov eax, 0x616
jmp 0x4a5c87
mov eax, 0x618
jmp 0x4a5c87
mov eax, 0x40e
jmp 0x4a5c87
mov eax, 0x40d
push 0
push eax
mov eax, dword [edi]
mov ecx, edi
push 0x111
call dword [eax + 0xd0]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x860]
call fcn.00410d88
neg ebx
sbb ebx, ebx
and ebx, edi
push ebx
call fcn.004a0f36
mov ecx, eax
call fcn.0041e7bf
mov ebx, dword [ebp - 0x86c]
push dword [ebx]
call fcn.0041e6f0
mov ecx, eax
call fcn.0041e7bf
push 0
push 0x64
push 0x3e8
push dword [ebx]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push str._searchhottools
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004a4e3c
add esp, 0x10
test eax, eax
je 0x4a5d33
mov ecx, dword [ebp - 0x874]
test ecx, ecx
je 0x4a5d33
mov eax, dword [ecx]
lea edx, [ebp - 0x804]
push edx
call dword [eax + 0x48]
call fcn.0041bcb9
mov ebx, eax
test ebx, ebx
je 0x4a5d7e
push str.safemon_skin_browserfix_v5_tab_0.png
push dword [0x577c88]
lea eax, [ebp - 0x864]
push eax
call fcn.0041bbfe
mov edx, dword [ebx]
add esp, 0xc
mov ecx, ebx
push 0
push dword [eax]
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x864]
mov edi, eax
add ecx, 0xfffffff0
call fcn.004042e9
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 8]
test edi, edi
jne 0x4a5d86
push 0
call fcn.00459c58
pop ecx
lea ecx, [esi - 0x10]
call fcn.004042e9
xor eax, eax
inc eax
jmp 0x4a5d9e
push dword [edi]
call fcn.00459c58
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret 0x10