Function at 0x4c9970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f4
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x7ec], 0
mov byte [ebp - 0x3f8], 0
jne 0x4c9b0b
lea eax, [ebp - 0x7f0]
mov dword [ebp - 0x7f0], edi
push eax
call fcn.004c9090
mov ecx, dword [0x59012c]
mov esi, eax
add esp, 4
test esi, esi
je 0x4c9a06
test ecx, ecx
je 0x4c9a06
xor ebx, ebx
cmp ebx, dword [ecx + 4]
jge 0x4c9a06
mov eax, dword [ecx + 8]
mov eax, dword [eax + ebx*4]
push dword [eax]
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
mov ecx, dword [0x59012c]
add esp, 8
test eax, eax
je 0x4c99f1
inc ebx
cmp ebx, dword [ecx + 4]
jl 0x4c99d0
cmp ebx, dword [ecx + 4]
jge 0x4c9a06
mov eax, dword [ecx + 8]
mov ebx, dword [eax + ebx*4]
mov dword [ebp - 0x7e8], ebx
test ebx, ebx
jne 0x4c9a19
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x4c9af0
mov ebx, dword [ebx]
mov dword [ebp - 0x7e8], ebx
lea eax, [ebp - 0x7f0]
push eax
call fcn.004c9090
add esp, 4
mov dword [ebp - 0x7f4], eax
xor edi, edi
test eax, eax
je 0x4c9acd
mov ecx, dword [ebx + 0x28]
mov edi, dword [ecx + 0x38]
test edi, edi
je 0x4c9acd
mov esi, dword [ebp - 0x7f0]
nop dword [eax]
push dword [edi]
push eax
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x4c9ac0
test esi, esi
je 0x4c9b03
push 0x5c
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr
push 0xc7
mov ecx, eax
mov dword [0x590138], eax
sub ecx, esi
xor edx, edx
push str.MainDialog.c
test eax, eax
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
cmovne edx, ecx
push edx
push esi
push 0x590134
call fcn.0047ce40
mov esi, dword [0x590138]
add esp, 0x20
test esi, esi
je 0x4c9aaa
inc esi
jmp 0x4c9aac
xor esi, esi
mov eax, dword [0x590134]
mov dword [ebp - 0x7f4], eax
test eax, eax
je 0x4c9b03
mov edi, dword [edi + 0x34]
jmp 0x4c9ac9
mov edi, dword [edi + 0x38]
mov eax, dword [ebp - 0x7f4]
test edi, edi
jne 0x4c9a50
mov eax, dword [ebx + 0x28]
mov esi, dword [0x59012c]
mov dword [ebp - 0x7e8], ebx
mov eax, dword [eax + 0x38]
test eax, eax
cmovne edi, eax
test edi, edi
jne 0x4c9b48
test ebx, ebx
jne 0x4ca0a7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
mov esi, dword [0x59012c]
jmp 0x4c9b48
push 1
push edi
call fcn.004c9100
mov esi, dword [0x59012c]
mov ebx, eax
add esp, 8
mov dword [ebp - 0x7e8], eax
test ebx, ebx
jne 0x4c9b38
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
test ecx, ecx
cmovne ebx, ecx
mov dword [ebp - 0x7e8], ebx
test edi, edi
jne 0x4c9b48
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4c9ae8
mov edi, eax
cmp dword [edi + 0x18], 0
je 0x4c9ae8
mov dword [esi + 0x10], 0
mov ecx, dword [0x59012c]
cmp dword [ecx + 4], 0
jle 0x4c9b94
xor ebx, ebx
mov eax, dword [ecx + 8]
mov esi, dword [eax + ebx*4]
push dword [esi]
call fcn.004c91b0
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x4c9b82
mov eax, dword [0x59012c]
inc dword [eax + 0x10]
mov ecx, dword [0x59012c]
inc ebx
cmp ebx, dword [ecx + 4]
jl 0x4c9b63
mov ebx, dword [ebp - 0x7e8]
test ebx, ebx
je 0x4c9b9e
test byte [ebx + 8], 1
jne 0x4c9bf6
mov esi, dword [ecx + 4]
xor ebx, ebx
test esi, esi
jle 0x4c9bc0
mov edx, dword [ecx + 8]
nop word [eax + eax]
mov eax, dword [edx]
test byte [eax + 8], 1
jne 0x4c9bc0
inc ebx
add edx, 4
cmp ebx, esi
jl 0x4c9bb0
cmp ebx, esi
jne 0x4c9bea
push 0
push str.TREE
push dword [ecx + 0xa8]
call fcn.00493b70
add esp, 8
push eax
call fcn.004a09f0
mov ecx, dword [0x59012c]
add esp, 8
xor ebx, ebx
mov eax, dword [ecx + 8]
mov ebx, dword [eax + ebx*4]
mov eax, dword [ebx + 0x28]
mov edi, dword [eax + 0x38]
mov edx, dword [ecx + 0xb8]
test edx, edx
js 0x4c9c2c
cmp edx, dword [ecx + 4]
jge 0x4c9c2c
mov eax, dword [ecx + 8]
push dword [ecx + 0x94]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 0x28]
push dword [eax + 0x38]
call fcn.004b4d90
mov ecx, dword [0x59012c]
add esp, 8
mov dword [0x590130], eax
jmp 0x4c9c31
mov eax, dword [0x590130]
test eax, eax
jne 0x4c9c41
mov dword [ecx + 0xb4], eax
mov ecx, dword [0x59012c]
mov eax, dword [ecx + 8]
mov esi, dword [edi + 0x18]
mov dword [ebp - 0x7ec], esi
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
cmp edi, dword [eax + 0x38]
je 0x4c9ccb
push dword [esi]
push dword [esi + 4]
push str._sN_s
call fcn.004c91b0
add esp, 0xc
test eax, eax
jne 0x4c9cc5
mov eax, dword [0x59012c]
add eax, 0x1c
jne 0x4c9c81
push 0xc
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
movq xmm0, qword [esi + 8]
push 0x37d
movq qword [eax], xmm0
mov ecx, dword [esi + 0x10]
push str.MainDialog.c
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov dword [eax + 8], ecx
mov eax, dword [0x59012c]
push 0
push dword [esi]
add eax, 0x14
push eax
call fcn.0047ce40
mov ecx, dword [0x59012c]
add esp, 0x18
lea esi, [ecx + 0x14]
mov dword [ebp - 0x7ec], esi
jmp 0x4c9ccb
mov ecx, dword [0x59012c]
cmp dword [ecx + 0xb4], esi
jne 0x4c9d01
mov eax, dword [ecx]
push eax
push eax
push dword [ecx + 0x9c]
call fcn.004c8b70
push 0
push esi
push ebx
call fcn.004c0410
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
call fcn.00493410
cmp dword [eax + 0xdd0], 0
je 0x4c9d6c
cmp dword [0x590338], 0
jne 0x4c9d2d
push 0
push 2
push 0x11
push 0xf
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [0x590338], eax
push dword [esi + 0x14]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0x1003
push 0x7ed
push dword [ebx + 0x10]
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x590338]
push 1
push 0x1003
push 0x7ed
push dword [ebx + 0x10]
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push dword [ebx + 0x28]
call fcn.004b5c80
add esp, 8
mov dword [ebp - 0x7e8], eax
push 0
push 0
push 0xb
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x59012c]
mov ecx, dword [ecx + 0xb4]
test ecx, ecx
je 0x4c9e14
mov eax, dword [ecx + 0x50]
mov esi, dword [ecx + 0x58]
test eax, eax
je 0x4c9e16
push dword [0x590130]
push ebx
push 2
call eax
add esp, 0xc
test eax, eax
jne 0x4c9e16
push 0
push dword [ebp - 0x7e8]
push 0x7ed
push dword [ebx + 0x10]
call fcn.004aa4f0
push dword [0x590130]
push dword [ebx + 0x28]
call fcn.004b5c80
push 1
push eax
push 0x7ed
push dword [ebx + 0x10]
call fcn.004aa4f0
add esp, 0x28
push 0
push 1
push 0xb
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x590130]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ecx, dword [ebp - 0x7ec]
mov eax, dword [ecx + 0x50]
test eax, eax
je 0x4c9e30
push edi
push ebx
push 1
call eax
add esp, 0xc
test eax, eax
je 0x4c9db9
push 1
push dword [ebp - 0x7e8]
push 0x7ed
push dword [ebx + 0x10]
call fcn.004aa4f0
mov eax, dword [ebp - 0x7ec]
push dword [eax + 0x58]
push dword [0x50d9b8]
push dword [ebx + 0xc]
call fcn.004846b0
mov eax, dword [ebp - 0x7ec]
add esp, 0x1c
push 0
push 0
push 0x901d
push dword [eax + 0x58]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x7ec]
push 5
push dword [eax + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x59012c]
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4c9ed6
mov eax, dword [eax + 0x58]
test eax, eax
je 0x4c9eb2
mov ecx, dword [ebp - 0x7ec]
cmp eax, dword [ecx + 0x58]
je 0x4c9eb2
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
je 0x4c9ed6
mov eax, dword [ebp - 0x7ec]
cmp esi, dword [eax + 0x58]
je 0x4c9ed6
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebx + 0xc]
call fcn.00489bc0
add esp, 8
mov esi, dword [edi + 0x30]
lea eax, [ebp - 0x3f4]
push 0x1f5
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x1f5
lea eax, [ebp - 0x7e4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov byte [ebp - 0x5f0], 0
mov byte [ebp - 8], 0
mov byte [ebp - 0x200], 0
test esi, esi
je 0x4c9fc0
nop dword [eax]
test byte [ebx + 4], 2
je 0x4c9f30
cmp dword [esi + 0x30], 0
je 0x4c9fc0
lea eax, [ebp - 0x3f4]
push eax
mov eax, dword [esi + 0x18]
push dword [eax]
lea eax, [ebp - 0x1fc]
push str._s____s
push 0x1f4
push eax
call fcn.00482630
add esp, 0x14
mov byte [ebp - 8], 0
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x1fc]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x3f5], al
test al, al
jne 0x4c9f60
lea eax, [ebp - 0x3f4]
push eax
mov eax, dword [esi + 0x18]
push dword [eax]
lea eax, [ebp - 0x1fc]
push 0x4f166c
push 0x1f4
push eax
call fcn.00482630
add esp, 0x14
mov byte [ebp - 8], 0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1fc]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x7e5], al
test al, al
jne 0x4c9fa0
mov esi, dword [esi + 0x30]
test esi, esi
jne 0x4c9f20
push 0x3d1
push str.MainDialog.c
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
push 0
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebx + 0x18]
push eax
call fcn.0047ce40
mov eax, dword [ebp - 0x7ec]
add esp, 0x18
cmp byte [ebp - 0x3f4], 0
mov ecx, dword [eax]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 8]
cdq
push ecx
je 0x4ca022
lea ecx, [ebp - 0x3f4]
push ecx
push edx
push eax
push esi
push str.d1_b1a0a0a0__x3_n_d_p_016I64X_ftahoma_t1000_c707070_h18_w0___scff0000_s
lea eax, [ebp - 0x5ec]
push 0x1f4
push eax
call fcn.00482630
add esp, 0x20
jmp 0x4ca03e
push edx
push eax
push esi
push str.d1_b1a0a0a0__x3_n_d_p_016I64X_ftahoma_t1000_cff0000_h18_w0___s
lea eax, [ebp - 0x5ec]
push 0x1f4
push eax
call fcn.00482630
add esp, 0x1c
mov eax, dword [0x50d9bc]
test eax, eax
je 0x4ca05d
lea ecx, [ebp - 0x5ec]
push ecx
push ecx
push ecx
push ecx
push eax
push dword [ebx + 0xc]
call fcn.00481a30
add esp, 0x18
push 0
push 1
push 0xb
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [ebp - 0x7ec]
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x59012c]
mov dword [eax + 0xb4], esi
mov eax, dword [0x59012c]
mov ecx, dword [edi + 0x18]
mov dword [eax + 0x94], ecx
mov esi, dword [0x59012c]
mov ecx, dword [esi + 4]
xor edx, edx
test ecx, ecx
jle 0x4ca0bf
mov eax, dword [esi + 8]
cmp ebx, dword [eax]
je 0x4ca0bf
inc edx
add eax, 4
cmp edx, ecx
jl 0x4ca0b3
mov ecx, dword [esi]
mov dword [esi], edx
mov eax, dword [0x59012c]
push edx
push ecx
mov dword [eax + 0xb8], edx
mov eax, dword [0x59012c]
push dword [eax + 0x9c]
call fcn.004c8b70
push 0
push dword [ebp - 0x7ec]
push ebx
call fcn.004c0410
add esp, 0x18
call fcn.0042c320
mov edx, dword [0x59012c]
xor ecx, ecx
mov dword [ebp - 0x7e8], ecx
xor ebx, ebx
cmp dword [edx + 4], ecx
jle 0x4ca16c
nop dword [eax + eax]
mov eax, dword [edx + 8]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 0x28]
mov esi, dword [eax + 0x38]
test esi, esi
je 0x4ca15a
cmp esi, edi
je 0x4ca154
inc ecx
mov dword [ebp - 0x7e8], ecx
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4ca14d
lea ecx, [ebp - 0x7e8]
push ecx
push eax
push edi
call fcn.004c9220
mov ecx, dword [ebp - 0x7e8]
add esp, 0xc
test eax, eax
jne 0x4ca166
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x4ca120
mov edx, dword [0x59012c]
cmp esi, edi
je 0x4ca16c
inc ebx
cmp ebx, dword [edx + 4]
jl 0x4ca110
jmp 0x4ca16c
mov edx, dword [0x59012c]
or esi, 0xffffffff
cmp ebx, dword [edx + 4]
cmovl esi, ecx
call fcn.00493410
mov dword [eax + 0xdc4], esi
mov eax, dword [ebp - 0x7ec]
test eax, eax
je 0x4ca19c
push 0
push 0
push 0x4c9
push dword [eax + 0x58]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e2538
mov esp, ebp
pop ebp
ret