Function at 0x401a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x87
push edi
mov ebx, ecx
jne 0x401a87
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0x102
jne 0x401b2e
mov edi, dword [ebp + 0xc]
cmp edi, 9
mov ecx, dword [ebx + 0xa4]
jne 0x401ae9
test ecx, ecx
je 0x401abf
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0
push edi
push ebx
call edx
cmp eax, 0xf4240
je 0x401adb
test eax, eax
jne 0x401fed
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x5c]
push eax
push 9
push 0x102
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0xf4240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ecx, ecx
je 0x401aff
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0
push edi
push ebx
call eax
cmp eax, 0xf4240
je 0x401adb
mov ecx, dword [ebp + 0x10]
push ecx
push edi
push 0x102
mov ecx, ebx
call fcn.0045f7e0
mov ecx, dword [ebx + 0xa4]
test ecx, ecx
mov esi, eax
je 0x401b23
mov edx, dword [ecx]
mov eax, dword [edx]
push ebx
call eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0x100
jne 0x401b49
cmp dword [ebp + 0xc], 0x2e
jne 0x401fed
mov ecx, dword [ebp + 0x10]
push ecx
push 0x2e
push esi
jmp 0x401b09
cmp esi, 0x201
jne 0x401bdc
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x401fed
test dword [eax], 0xffffff00
je 0x401fed
cmp byte [eax + 4], 0
je 0x401fed
cmp dword [ebx + 0x68], 0
je 0x401fed
mov eax, dword [ebx + 0x78]
mov ecx, dword [eax + 0x148]
cmp ecx, dword [eax + 0x144]
je 0x401ba2
mov eax, 0xf4241
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x401bb1
add eax, 4
jmp 0x401bb3
xor eax, eax
call fcn.0046a2d0
test eax, eax
je 0x401fed
mov ecx, dword [ebx + 0x78]
cmp eax, dword [ecx + 0x154]
je 0x401fed
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x78]
call eax
jmp 0x401fed
cmp esi, 0x204
jne 0x401c63
mov eax, 0xe
mov edi, str.editrightclick
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.00459750
push ebx
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0x10]
lea esi, [esp + 0x34]
call fcn.00401830
lea edi, [esp + 0xc]
call fcn.00401700
mov eax, dword [ebp + 0x10]
movzx ecx, ax
shr eax, 0x10
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x4c], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
mov eax, esi
push eax
call edx
cmp eax, 0xf4240
lea edi, [esp + 0x44]
jne 0x401c56
call fcn.00401700
mov eax, 0xf4240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00401700
mov esi, dword [ebp + 8]
jmp 0x401fed
cmp esi, 0x20a
jne 0x401cb0
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [eax + 0x5c]
push edx
mov edx, esi
lea eax, [esp + 0x38]
call fcn.00401880
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x30]
push edx
call eax
lea edi, [esp + 0x44]
mov esi, eax
call fcn.00401700
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0x47
jne 0x401ecd
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push ecx
push esi
mov ecx, ebx
call fcn.0045f7e0
test byte [edi + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x401ec0
mov eax, ebx
call fcn.0045ecb0
mov dword [esp + 0xc], eax
mov eax, ebx
call fcn.0045ecc0
lea edx, [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x5c]
xor esi, esi
push edx
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [ebx + 0x87], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
je 0x401e8b
mov edx, dword [ebx + 0x90]
cmp edx, dword [esp + 0x20]
jne 0x401d4f
cmp dword [ebx + 0x98], ecx
jne 0x401d4f
mov edx, dword [ebx + 0x94]
cmp edx, dword [esp + 0x24]
jne 0x401d4f
cmp dword [ebx + 0x9c], eax
je 0x401e8b
lea esi, [esp + 0x18]
call fcn.0046e960
mov ecx, dword [ebx + 0x5c]
mov eax, esi
push eax
call fcn.0046ea80
mov ecx, dword [ebx + 0x5c]
push 0
push 0xffffffffffffffeb
push ecx
call dword [0x6fc1ac]
mov edx, dword [ebx + 0x5c]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x78]
mov esi, dword [0x6fa0bc]
mov dword [ebx + 0x5c], 0
mov byte [ebx + 0x2a], 0
mov edx, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [eax + 0x5c]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
push 0
push esi
push 0
push eax
mov eax, dword [edi + 0xc]
push ecx
mov ecx, dword [edi + 8]
push edx
push eax
mov eax, dword [esp + 0x28]
or eax, 0x10000000
push ecx
push eax
lea eax, [esp + 0x3c]
call fcn.0046e9f0
mov edx, dword [esp + 0x34]
push eax
push str.EDIT
push edx
call dword [0x6fc24c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x90], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], edx
mov dword [ebx + 0x9c], eax
mov eax, dword [0x6f51e8]
test eax, eax
je 0x401e19
push 0
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
mov esi, ebx
call fcn.0045e070
mov edi, dword [esp + 0x14]
push 1
call fcn.0045e700
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x401e3c
add eax, 4
jmp 0x401e3e
xor eax, eax
push 0
push 0x6d8b9c
push 0x6d8b80
push 0
call fcn.0046a2d0
push eax
call fcn.0060807c
mov esi, eax
add esp, 0x14
test esi, esi
je 0x401e74
mov edx, dword [esi]
mov eax, dword [ebx + 0x5c]
mov edx, dword [edx + 0x78]
push eax
mov ecx, esi
call edx
mov byte [esi + 0x288], 0
lea eax, [esp + 0x18]
call fcn.0046e970
mov eax, 0xf4240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x90], edx
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x94], edx
mov dword [ebx + 0x98], ecx
mov ecx, dword [ebx + 0x5c]
mov dword [ebx + 0x9c], eax
lea eax, [esp + 0x20]
push eax
push esi
push 0xb3
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 7
je 0x401fd4
cmp esi, 8
je 0x401fd4
cmp esi, 0x14
jne 0x401f47
cmp byte [ebx + 0x84], 0
je 0x401fed
xor eax, eax
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x5c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0xf00021
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
mov eax, 0xf4240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0x302
jne 0x401f81
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.0045f7e0
mov ecx, dword [ebx + 0xa4]
test ecx, ecx
mov esi, eax
je 0x401b23
mov eax, dword [ecx]
mov edx, dword [eax]
push ebx
call edx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0x7d
jne 0x401fed
test dword [ebp + 0xc], 0xffffffec
je 0x401fed
mov ecx, dword [ebx + 0xa4]
test ecx, ecx
je 0x401fed
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
and eax, 0x2000
mov edx, dword [edx + 4]
je 0x401fbc
test edx, 0x2000
jne 0x401fbc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0
push ebx
call edx
jmp 0x401fed
test eax, eax
jne 0x401fed
test edx, 0x2000
je 0x401fed
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 1
push ebx
call edx
jmp 0x401fed
mov ecx, dword [ebx + 0xa4]
test ecx, ecx
je 0x401fed
mov eax, dword [ecx]
mov eax, dword [eax + 8]
cmp esi, 7
sete dl
push edx
push ebx
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.0045f7e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc