Function at 0x461d90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x4ccbf8]
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 0x461e6a
call fcn.00435f20
test eax, eax
je 0x461e59
call fcn.00435f20
cmp dword [eax], esi
je 0x461e59
mov eax, dword [0x4edee0]
test eax, eax
je 0x461e18
mov esi, dword [eax + 0x190]
jmp 0x461e1e
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x461e30
call fcn.00435f20
mov eax, dword [eax]
jmp 0x461e32
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 [0x4edee0]
push esi
push 0
push 0x1c7
push str.D:MyProjectsProPilotLibMainDialog.c
push 0x103
call eax
add esp, 0x20
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x138]
push edi
push eax
call fcn.004629c0
mov ecx, dword [0x54f7dc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x461ec8
test ecx, ecx
je 0x461ec8
xor edi, edi
cmp edi, dword [ecx + 4]
jge 0x461ec8
mov eax, dword [ecx + 8]
mov eax, dword [eax + edi*4]
push dword [eax]
push ebx
call fcn.0048e032
mov ecx, dword [0x54f7dc]
add esp, 8
test eax, eax
je 0x461eb3
inc edi
cmp edi, dword [ecx + 4]
jl 0x461e92
cmp edi, dword [ecx + 4]
jge 0x461ec8
mov eax, dword [ecx + 8]
mov edi, dword [eax + edi*4]
mov dword [ebp - 0x144], edi
test edi, edi
jne 0x461ef9
mov edx, dword [ecx + 8]
test edx, edx
je 0x461ede
mov eax, dword [ecx + 4]
mov edi, dword [edx + eax*4 - 4]
mov dword [ebp - 0x144], edi
jmp 0x461ef9
push 0
push 0
push 0
push str._default_
call fcn.00461bc0
add esp, 0x10
mov dword [ebp - 0x144], eax
mov edi, eax
lea eax, [ebp - 0x138]
push eax
call fcn.004629c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x461fb4
mov ecx, dword [edi + 0x28]
mov edi, dword [ecx + 0x38]
mov dword [ebp - 0x13c], edi
test edi, edi
je 0x461fb6
mov edi, dword [ebp - 0x138]
mov esi, dword [ebp - 0x13c]
push dword [esi]
push ebx
call fcn.0048e032
add esp, 8
test eax, eax
jne 0x461f99
test edi, edi
je 0x461fa0
push 0x5c
push edi
call fcn.0048ca3c
push 0xc5
mov ecx, eax
mov dword [0x54f7e8], eax
sub ecx, edi
xor edx, edx
push str.D:MyProjectsProPilotLibMainDialog.c
test eax, eax
push fcn.00483b6d
cmovne edx, ecx
push edx
push edi
push 0x54f7e4
call fcn.0041d090
mov edi, dword [0x54f7e8]
add esp, 0x20
test edi, edi
je 0x461f88
inc edi
jmp 0x461f8a
xor edi, edi
mov ebx, dword [0x54f7e4]
test ebx, ebx
je 0x461fa0
mov esi, dword [esi + 0x34]
jmp 0x461f9c
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x461f32
mov dword [ebp - 0x13c], esi
mov esi, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x13c]
jmp 0x461fb6
xor edi, edi
mov eax, dword [ebp - 0x150]
and eax, 0x200
mov dword [ebp - 0x14c], eax
je 0x461fdd
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x13c], ebx
jmp 0x462104
mov eax, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x144]
test eax, eax
jne 0x46200a
push eax
push 0x462910
push dword [ebx + 0xc]
push str.EmptyDialog
call fcn.00435f20
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0
push eax
push dword [ebx + 0xc]
call fcn.0042b4c0
add esp, 0xc
mov dword [ebp - 0x140], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x80
call fcn.00486927
mov ebx, eax
add esp, 4
mov dword [ebp - 0x13c], ebx
test ebx, ebx
je 0x462050
push 0x80
push 0
push ebx
call fcn.004811a0
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 0x4620da
mov ecx, esi
cmp al, 0x11
jae 0x4620b5
cmp al, 9
jb 0x462074
cmp al, 0xd
jbe 0x4620b5
movsx eax, al
inc esi
dec eax
cmp eax, 0xe
ja case.0x462085.8
movzx eax, byte [eax + 0x462480]
jmp dword [eax*4 + 0x46246c]
lea esi, [ecx + 2]
jmp case.0x462085.8
lea esi, [ecx + 0x11]
jmp case.0x462085.8
xor eax, eax
cmp byte [esi], 0x20
jle 0x4620a4
inc eax
inc esi
cmp eax, 8
jl 0x462098
cmp byte [esi], 3
jne case.0x462085.8
inc esi
jmp case.0x462085.8
lea esi, [ecx + 7]
mov al, byte [esi]
test al, al
jne 0x462066
cmp esi, edx
jbe 0x4620da
push 0x20e
push str.D:MyProjectsProPilotLibMainDialog.c
push fcn.00483b6d
mov eax, esi
sub eax, edx
push eax
push edx
lea eax, [ebx + 0x60]
push eax
call fcn.0041d090
add esp, 0x18
push 0x210
push str.D:MyProjectsProPilotLibMainDialog.c
push fcn.00483b6d
push 0
push esi
push ebx
call fcn.0041d090
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 0x462169
test edi, edi
jne 0x46215f
cmp eax, 0xfffffffe
je 0x462169
mov eax, dword [eax + 0x18]
test eax, eax
je 0x46218e
push dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x134]
push str._sN_s
push 0x12c
push eax
call fcn.00422fe0
push 0x21a
push str.D:MyProjectsProPilotLibMainDialog.c
push fcn.00483b6d
push 0
lea eax, [ebp - 0x134]
push eax
lea eax, [ebx + 4]
push eax
call fcn.0041d090
add esp, 0x2c
jmp 0x46218e
cmp eax, 0xfffffffe
jne 0x462117
mov eax, dword [edi + 0x18]
jmp 0x46211a
mov eax, dword [ebp - 0x144]
push 0x21e
push str.D:MyProjectsProPilotLibMainDialog.c
push fcn.00483b6d
push 0
push dword [eax]
lea eax, [ebx + 4]
push eax
call fcn.0041d090
add esp, 0x18
cmp dword [ebp - 0x14c], 0
jne 0x4623f5
mov ecx, dword [ebp - 0x148]
test ecx, ecx
je 0x462352
mov eax, dword [ebp + 0x1c]
add ebx, 8
cmp eax, 0xffffffff
jne 0x46227e
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.00435f20
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 0x46226d
call fcn.00435f20
test eax, eax
je 0x46226d
call fcn.00435f20
cmp dword [eax], 0
je 0x46226d
mov eax, dword [0x4edee0]
test eax, eax
je 0x462221
mov eax, dword [eax + 0x190]
jmp 0x462226
mov eax, dword [0x4edee4]
mov dword [ebp - 0x138], eax
call fcn.00435f20
test eax, eax
je 0x46223e
call fcn.00435f20
mov eax, dword [eax]
jmp 0x462240
xor eax, eax
push str.Error:_AddIcon_failed_for_node__s
push esi
push str.Error:_AddIcon_failed_for_node__s
push dword [0x4edee0]
push dword [ebp - 0x138]
push 0
push 0x226
push str.D:MyProjectsProPilotLibMainDialog.c
push 0x103
call eax
add esp, 0x24
push dword [ebp - 0x140]
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x46232b
mov esi, dword [ebp - 0x13c]
add esi, 0x10
push esi
push ebx
push eax
push ecx
mov dword [ebp - 0x140], esi
call fcn.00435f30
add esp, 0x10
test eax, eax
jne 0x46232b
push eax
push esi
push ebx
push dword [ebp - 0x148]
call fcn.00436170
add esp, 0x10
test eax, eax
jne 0x46232b
call fcn.004388c0
test eax, eax
je 0x4622ff
push 0x2000
push 0
push 0
push 0
push dword [ebp - 0x148]
call fcn.00435f20
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.004264d0
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.00435f20
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.0042ad10
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.00435f20
cmp dword [eax + 0xdd0], 0
je 0x4623f5
cmp dword [0x54f7ec], 0
jne 0x462382
push 0
push 2
push 0x11
push 0xf
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [0x54f7ec], 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 0x4623c9
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 0x462398
push dword [0x54f7ec]
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 0x462790
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.00454c50
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.0047f41c
mov esp, ebp
pop ebp
ret