Function at 0x4c8470
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], 0
mov byte [ebp - 8], 0
test esi, esi
jne 0x4c854a
call fcn.00493410
test eax, eax
je 0x4c8539
call fcn.00493410
cmp dword [eax], esi
je 0x4c8539
mov eax, dword [0x52e820]
test eax, eax
je 0x4c84f8
mov esi, dword [eax + 0x190]
jmp 0x4c84fe
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x4c8510
call fcn.00493410
mov eax, dword [eax]
jmp 0x4c8512
xor eax, eax
push str.Error:_No_name_specified_in_call_to_AddTreeNode
push str.Error:_No_name_specified_in_call_to_AddTreeNode
push dword [0x52e820]
push esi
push 0
push 0x1c9
push str.MainDialog.c
push 0x103
call eax
add esp, 0x20
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x138]
push edi
push eax
call fcn.004c9090
mov ecx, dword [0x59012c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c85a8
test ecx, ecx
je 0x4c85a8
xor edi, edi
cmp edi, dword [ecx + 4]
jge 0x4c85a8
mov eax, dword [ecx + 8]
mov eax, dword [eax + edi*4]
push dword [eax]
push ebx
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
mov ecx, dword [0x59012c]
add esp, 8
test eax, eax
je 0x4c8593
inc edi
cmp edi, dword [ecx + 4]
jl 0x4c8572
cmp edi, dword [ecx + 4]
jge 0x4c85a8
mov eax, dword [ecx + 8]
mov edi, dword [eax + edi*4]
mov dword [ebp - 0x144], edi
test edi, edi
jne 0x4c85d9
mov edx, dword [ecx + 8]
test edx, edx
je 0x4c85be
mov eax, dword [ecx + 4]
mov edi, dword [edx + eax*4 - 4]
mov dword [ebp - 0x144], edi
jmp 0x4c85d9
push 0
push 0
push 0
push str._default_
call fcn.004c82a0
add esp, 0x10
mov dword [ebp - 0x144], eax
mov edi, eax
lea eax, [ebp - 0x138]
push eax
call fcn.004c9090
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c8694
mov ecx, dword [edi + 0x28]
mov edi, dword [ecx + 0x38]
mov dword [ebp - 0x13c], edi
test edi, edi
je 0x4c8696
mov edi, dword [ebp - 0x138]
mov esi, dword [ebp - 0x13c]
push dword [esi]
push ebx
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x4c8679
test edi, edi
je 0x4c8680
push 0x5c
push edi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr
push 0xc7
mov ecx, eax
mov dword [0x590138], eax
sub ecx, edi
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 edi
push 0x590134
call fcn.0047ce40
mov edi, dword [0x590138]
add esp, 0x20
test edi, edi
je 0x4c8668
inc edi
jmp 0x4c866a
xor edi, edi
mov ebx, dword [0x590134]
test ebx, ebx
je 0x4c8680
mov esi, dword [esi + 0x34]
jmp 0x4c867c
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x4c8612
mov dword [ebp - 0x13c], esi
mov esi, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x13c]
jmp 0x4c8696
xor edi, edi
mov eax, dword [ebp - 0x150]
and eax, 0x200
mov dword [ebp - 0x14c], eax
je 0x4c86bd
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x13c], ebx
jmp 0x4c87e4
mov eax, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x144]
test eax, eax
jne 0x4c86ea
push eax
push 0x4058c0
push dword [ebx + 0xc]
push str.EmptyDialog
call fcn.00493410
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0
push eax
push dword [ebx + 0xc]
call fcn.00489760
add esp, 0xc
mov dword [ebp - 0x140], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x80
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ebx, eax
add esp, 4
mov dword [ebp - 0x13c], ebx
test ebx, ebx
je 0x4c8730
push 0x80
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x150]
mov edx, esi
and eax, 0xff00ffff
mov dword [ebx + 0x5c], eax
mov al, byte [esi]
test al, al
je 0x4c87ba
mov ecx, esi
cmp al, 0x11
jae 0x4c8795
cmp al, 9
jb 0x4c8754
cmp al, 0xd
jbe 0x4c8795
movsx eax, al
inc esi
dec eax
cmp eax, 0xe
ja case.0x4c8765.8
movzx eax, byte [eax + 0x4c8b60]
jmp dword [eax*4 + 0x4c8b4c]
lea esi, [ecx + 2]
jmp case.0x4c8765.8
lea esi, [ecx + 0x11]
jmp case.0x4c8765.8
xor eax, eax
cmp byte [esi], 0x20
jle 0x4c8784
inc eax
inc esi
cmp eax, 8
jl 0x4c8778
cmp byte [esi], 3
jne case.0x4c8765.8
inc esi
jmp case.0x4c8765.8
lea esi, [ecx + 7]
mov al, byte [esi]
test al, al
jne 0x4c8746
cmp esi, edx
jbe 0x4c87ba
push 0x210
push str.MainDialog.c
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov eax, esi
sub eax, edx
push eax
push edx
lea eax, [ebx + 0x60]
push eax
call fcn.0047ce40
add esp, 0x18
push 0x212
push str.MainDialog.c
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
push 0
push esi
push ebx
call fcn.0047ce40
mov eax, dword [ebp - 0x140]
add esp, 0x18
mov dword [ebx + 0x58], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x4c8849
test edi, edi
jne 0x4c883f
cmp eax, 0xfffffffe
je 0x4c8849
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4c886e
push dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x134]
push str._sN_s
push 0x12c
push eax
call fcn.00482630
push 0x21c
push str.MainDialog.c
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
push 0
lea eax, [ebp - 0x134]
push eax
lea eax, [ebx + 4]
push eax
call fcn.0047ce40
add esp, 0x2c
jmp 0x4c886e
cmp eax, 0xfffffffe
jne 0x4c87f7
mov eax, dword [edi + 0x18]
jmp 0x4c87fa
mov eax, dword [ebp - 0x144]
push 0x220
push str.MainDialog.c
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
push 0
push dword [eax]
lea eax, [ebx + 4]
push eax
call fcn.0047ce40
add esp, 0x18
cmp dword [ebp - 0x14c], 0
jne 0x4c8ad5
mov ecx, dword [ebp - 0x148]
test ecx, ecx
je 0x4c8a32
mov eax, dword [ebp + 0x1c]
add ebx, 8
cmp eax, 0xffffffff
jne 0x4c895e
push 0
push 2
push 0x21
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0
push 0x10
push 0x10
push 1
push dword [ebp - 0x148]
mov dword [ebx], eax
call fcn.00493410
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [ebp - 0x140], eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
cmp eax, 0xffffffff
jne 0x4c894d
call fcn.00493410
test eax, eax
je 0x4c894d
call fcn.00493410
cmp dword [eax], 0
je 0x4c894d
mov eax, dword [0x52e820]
test eax, eax
je 0x4c8901
mov eax, dword [eax + 0x190]
jmp 0x4c8906
mov eax, dword [0x52e824]
mov dword [ebp - 0x138], eax
call fcn.00493410
test eax, eax
je 0x4c891e
call fcn.00493410
mov eax, dword [eax]
jmp 0x4c8920
xor eax, eax
push str.Error:_AddIcon_failed_for_node__s
push esi
push str.Error:_AddIcon_failed_for_node__s
push dword [0x52e820]
push dword [ebp - 0x138]
push 0
push 0x228
push str.MainDialog.c
push 0x103
call eax
add esp, 0x24
push dword [ebp - 0x140]
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x4c8a0b
mov esi, dword [ebp - 0x13c]
add esi, 0x10
push esi
push ebx
push eax
push ecx
mov dword [ebp - 0x140], esi
call fcn.00493420
add esp, 0x10
test eax, eax
jne 0x4c8a0b
push eax
push esi
push ebx
push dword [ebp - 0x148]
call fcn.00493660
add esp, 0x10
test eax, eax
jne 0x4c8a0b
call fcn.004978b0
test eax, eax
je 0x4c89df
push 0x2000
push 0
push 0
push 0
push dword [ebp - 0x148]
call fcn.00493410
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push 8
push 0x10
mov esi, eax
push esi
push 0
push 0
call fcn.00484340
add esp, 0x14
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x140]
push 0x2000
push 0
push 0xff00ff
push 0
push 0
push dword [ebp - 0x148]
call fcn.00493410
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageA]
mov dword [ebx], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi], eax
push dword [ebx]
call fcn.00488fb0
mov ecx, dword [ebp - 0x13c]
add esp, 4
mov dword [ecx + 0xc], eax
mov ecx, dword [ebx]
mov ebx, dword [ebp - 0x13c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x1c], eax
call fcn.00493410
cmp dword [eax + 0xdd0], 0
je 0x4c8ad5
cmp dword [0x59013c], 0
jne 0x4c8a62
push 0
push 2
push 0x11
push 0xf
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [0x59013c], eax
mov ecx, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebx + 8]
mov dword [ebp - 0x140], eax
mov esi, eax
mov ebx, 6
cmp dword [eax], 0
je 0x4c8aa9
push dword [esi]
mov eax, dword [ebp - 0x144]
push 1
push 0x1003
push 0x7ed
push dword [eax + 0x10]
call ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x140]
mov ecx, dword [sym.imp.USER32.dll_GetDlgItem]
add esi, 0xc
sub ebx, 1
jne 0x4c8a78
push dword [0x59013c]
mov eax, dword [ebp - 0x144]
push 1
push 0x1003
push 0x7ed
push dword [eax + 0x10]
call ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x150]
mov ebx, dword [ebp - 0x14c]
mov eax, ebx
mov edx, dword [ebp - 0x144]
shr ecx, 0x10
shl eax, 8
not ecx
and ecx, 1
inc dword [edx + 0x24]
or ecx, eax
push 0x4c8e70
push ecx
mov ecx, dword [ebp - 0x13c]
test ebx, ebx
push 0
mov eax, ecx
cmovne eax, dword [ebp - 0x154]
push eax
mov eax, dword [ebp - 0x15c]
cmp eax, 0xfffffffe
push dword [ecx]
cmove eax, edi
push eax
mov eax, dword [ebp - 0x158]
cmp eax, 0xfffffffe
cmove eax, edi
push eax
push dword [edx + 0x28]
call fcn.004b3330
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.004e2538
mov esp, ebp
pop ebp
ret