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

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov edi, eax
mov eax, dword [0x63c608]
cmp dword [eax - 0xc], 0
mov ebx, ecx
jl 0x4780a4
push 0x5d933c
push eax
call fcn.0057781d
add esp, 8
test eax, eax
je 0x4780a4
sub eax, dword [0x63c608]
sar eax, 1
js 0x4780a4
mov eax, dword [0x63c450]
cmp dword [eax + 0xe8], 2
jne 0x4780a4
mov eax, 0x11
mov ecx, 1
mov edi, edi
test eax, eax
jl 0x47809f
cmp eax, dword [ebx + 0xf34]
jge 0x47809f
mov edx, dword [ebx + 0xf30]
cmp dword [edx + eax*4], 0
je 0x478096
cmp eax, dword [ebx + 0xf34]
jge 0x47809f
mov edx, dword [edx + eax*4]
mov dword [edx + 0x28], ecx
add eax, ecx
cmp eax, 0x14
jl 0x478070
jmp 0x478103
call fcn.00555520
mov esi, 0x11
mov ecx, 1
mov edi, edi
test esi, esi
jl 0x47809f
cmp esi, dword [ebx + 0xf34]
jge 0x47809f
mov eax, dword [ebx + 0xf30]
cmp dword [eax + esi*4], 0
je 0x4780f8
cmp esi, dword [ebx + 0xf34]
jge 0x47809f
mov ecx, eax
mov eax, dword [ecx + esi*4]
mov edx, ebp
call fcn.0049d2f0
cmp esi, dword [ebx + 0xf34]
jge 0x47809f
mov edx, dword [ebx + 0xf30]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax + 0x3c]
add dword [ebp], ecx
mov ecx, 1
add esi, ecx
cmp esi, 0x14
jl 0x4780b0
add dword [ebp], 8
mov edx, dword [0x63c450]
cmp dword [edx + 0xe8], 2
je 0x4781bb
xor eax, eax
test eax, eax
jl 0x47809f
cmp eax, dword [ebx + 0xf34]
jge 0x47809f
mov edx, dword [ebx + 0xf30]
cmp dword [edx + eax*4], 0
je 0x478146
cmp eax, dword [ebx + 0xf34]
jge 0x47809f
mov edx, dword [edx + eax*4]
mov dword [edx + 0x28], ecx
add eax, ecx
cmp eax, 0x11
jl 0x478118
cmp dword [ebx + 0xf34], 0x14
jle 0x47809f
mov eax, dword [ebx + 0xf30]
mov edx, dword [eax + 0x50]
mov dword [edx + 0x28], ecx
cmp dword [ebx + 0xf34], 0x15
jle 0x47809f
mov eax, dword [ebx + 0xf30]
mov edx, dword [eax + 0x54]
mov dword [edx + 0x28], ecx
cmp dword [ebx + 0xf34], 0x16
jle 0x47809f
mov eax, dword [ebx + 0xf30]
mov edx, dword [eax + 0x58]
mov dword [edx + 0x28], ecx
cmp dword [ebx + 0xf34], 0x17
jle 0x47809f
mov eax, dword [ebx + 0xf30]
mov edx, dword [eax + 0x5c]
mov dword [edx + 0x28], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0xc
xor esi, esi
lea ecx, [ecx]
test esi, esi
jl 0x47809f
cmp esi, dword [ebx + 0xf34]
jge 0x47809f
mov eax, dword [ebx + 0xf30]
cmp dword [eax + esi*4], 0
je 0x478235
cmp esi, dword [ebx + 0xf34]
jge 0x47809f
mov ecx, eax
mov eax, dword [ecx + esi*4]
mov edx, ebp
call fcn.0049d2f0
cmp esi, 1
jne 0x478217
cmp dword [ebx + 0xf34], esi
jle 0x47809f
mov edx, dword [ebx + 0xf30]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x3c]
jmp 0x478232
cmp esi, dword [ebx + 0xf34]
jge 0x47809f
mov edx, dword [ebx + 0xf30]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax + 0x3c]
add ecx, 2
add dword [ebp], ecx
add esi, 1
cmp esi, 5
jl 0x4781c0
mov ecx, dword [0x63c608]
xor esi, esi
cmp dword [ecx - 0xc], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jl 0x478274
push str.HISTORY
push ecx
call fcn.0057781d
mov ecx, dword [0x63c608]
add esp, 8
test eax, eax
je 0x478274
sub eax, ecx
sar eax, 1
jns 0x478279
mov esi, 1
cmp dword [ecx - 0xc], 0
jl 0x47829d
push str.COPYSCREEN
push ecx
call fcn.0057781d
mov ecx, dword [0x63c608]
add esp, 8
test eax, eax
je 0x47829d
sub eax, ecx
sar eax, 1
jns 0x4782a5
mov dword [esp + 0x74], 1
cmp dword [ecx - 0xc], 0
jl 0x4782c9
push str.SEARCHBOX
push ecx
call fcn.0057781d
mov ecx, dword [0x63c608]
add esp, 8
test eax, eax
je 0x4782c9
sub eax, ecx
sar eax, 1
jns 0x4782d1
mov dword [esp + 0x14], 1
cmp dword [ecx - 0xc], 0
jl 0x4782f5
push str.SAFE
push ecx
call fcn.0057781d
mov ecx, dword [0x63c608]
add esp, 8
test eax, eax
je 0x4782f5
sub eax, ecx
sar eax, 1
jns 0x4782fd
mov dword [esp + 0x18], 1
cmp dword [ecx - 0xc], 0
jl 0x47831f
push str.HOME
push ecx
call fcn.0057781d
add esp, 8
test eax, eax
je 0x47831f
sub eax, dword [0x63c608]
sar eax, 1
jns 0x478355
lea eax, [ebx + 0x608]
mov edx, ebp
call fcn.0049d2f0
mov edx, dword [ebx + 0x644]
add dword [ebp], edx
lea eax, [ebx + 0x6a4]
mov edx, ebp
call fcn.0049d2f0
mov eax, dword [ebx + 0x6e0]
add eax, 2
add dword [ebp], eax
mov eax, 1
jmp 0x478360
mov eax, 1
mov dword [ebx + 0x630], eax
test esi, esi
je 0x478398
lea eax, [ebx + 0x56c]
mov edx, ebp
call fcn.0049d2f0
mov ecx, dword [ebx + 0x5a8]
add ecx, 2
add dword [ebp], ecx
lea eax, [ebx + 0xd58]
mov edx, ebp
call fcn.0049d2f0
mov edx, dword [ebx + 0xd94]
add edx, 2
add dword [ebp], edx
jmp 0x4783a4
mov dword [ebx + 0x594], eax
mov dword [ebx + 0xd80], eax
cmp dword [esp + 0x74], 0
je 0x4783c6
lea eax, [ebx + 0x740]
mov edx, ebp
call fcn.0049d2f0
mov eax, dword [ebx + 0x77c]
add eax, 2
add dword [ebp], eax
jmp 0x4783d0
mov dword [ebx + 0x768], 1
cmp dword [esp + 0x18], 0
je 0x4783df
mov eax, dword [ebx + 0xecc]
jmp 0x4783e1
xor eax, eax
mov ecx, dword [ebx + 0x950]
add ecx, dword [ebx + 0x9ec]
add ecx, dword [ebx + 0x8b4]
add ecx, dword [ebx + 0x818]
cmp dword [esp + 0x14], 0
lea eax, [ecx + eax + 0xa]
je 0x478420
mov edx, dword [ebx + 0xc5c]
add edx, dword [ebx + 0xbc0]
add edx, dword [ebx + 0xb24]
add edx, dword [ebx + 0xa88]
add eax, edx
jmp 0x478426
add eax, dword [ebx + 0xcf8]
mov esi, dword [0x63c5a8]
mov dword [esp + 0x74], eax
lea eax, [esi + esi*4]
add eax, eax
add eax, eax
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x78]
sub eax, dword [ebp]
sar ecx, 3
sub eax, dword [esp + 0x74]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x74], eax
je 0x478460
sub dword [esp + 0x74], ecx
lea eax, [esi*4]
cmp dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
jge 0x47849c
lea eax, [esi + esi*4]
cdq
and edx, 7
add eax, edx
sar eax, 3
sub ecx, eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
je 0x47848e
add dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x74], eax
jge 0x47849c
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x780]
sub eax, dword [ebx + 0x81c]
cdq
sub eax, edx
sar eax, 1
add dword [ebp + 4], eax
lea eax, [ebx + 0x7dc]
mov edx, ebp
call fcn.0049d2f0
mov ecx, dword [0x63c450]
mov edx, dword [ecx + 0x3b58]
push edx
lea eax, [ecx + 0x3b5c]
push edi
lea esi, [ecx + 0x2340]
call fcn.0040b720
mov eax, dword [ebx + 0x818]
add eax, dword [esp + 0x74]
mov edx, ebp
add dword [ebp], eax
lea eax, [ebx + 0x878]
call fcn.0049d2f0
mov ecx, dword [ebx + 0x8b4]
add dword [ebp], ecx
lea eax, [ebx + 0x914]
mov edx, ebp
call fcn.0049d2f0
mov edx, dword [ebx + 0x950]
add dword [ebp], edx
lea eax, [ebx + 0x9b0]
mov edx, ebp
call fcn.0049d2f0
mov eax, dword [ebx + 0x9ec]
add eax, 2
add dword [ebp], eax
cmp dword [esp + 0x14], 0
je 0x4785ec
cmp dword [esp + 0x18], 0
je 0x47855b
lea eax, [ebx + 0xe90]
mov edx, ebp
call fcn.0049d2f0
mov ecx, dword [ebx + 0xecc]
add ecx, 2
add dword [ebp], ecx
jmp 0x478565
mov dword [ebx + 0xeb8], 1
lea eax, [ebx + 0xa4c]
mov edx, ebp
call fcn.0049d2f0
mov edx, dword [ebx + 0xa88]
add edx, dword [esp + 0x1c]
lea eax, [ebx + 0xae8]
add dword [ebp], edx
mov edx, ebp
call fcn.0049d2f0
mov eax, dword [ebx + 0xb24]
add dword [ebp], eax
lea eax, [ebx + 0xb84]
mov edx, ebp
call fcn.0049d2f0
mov ecx, dword [ebx + 0xbc0]
add dword [ebp], ecx
lea eax, [ebx + 0xc20]
mov edx, ebp
call fcn.0049d2f0
mov edx, dword [ebx + 0xc5c]
mov ecx, dword [esp + 0x7c]
add edx, 2
add dword [ebp], edx
mov dword [ebx + 0xce4], 1
mov edx, dword [0x63c450]
mov eax, dword [ebp]
push edi
add edx, 0x2340
push edx
mov dword [ecx], eax
call fcn.0040b880
jmp 0x478658
lea eax, [ebx + 0xcbc]
mov edx, ebp
call fcn.0049d2f0
mov eax, dword [ebx + 0xcf8]
mov esi, dword [esp + 0x7c]
add eax, 2
add dword [ebp], eax
cmp dword [esp + 0x18], 0
mov eax, dword [ebp]
mov dword [esi], eax
mov eax, 1
mov dword [ebx + 0xa74], eax
mov dword [ebx + 0xb10], eax
mov dword [ebx + 0xbac], eax
mov dword [ebx + 0xc48], eax
je 0x478652
lea eax, [ebx + 0xe90]
mov edx, ebp
call fcn.0049d2f0
mov ecx, dword [ebx + 0xecc]
add ecx, 2
add dword [ebp], ecx
mov ebp, dword [ebp]
mov dword [esi], ebp
jmp 0x478658
mov dword [ebx + 0xeb8], eax
mov edx, dword [ebx + 0x820]
add edx, dword [ebx + 0x818]
mov eax, dword [ebx + 0x8bc]
mov ecx, dword [ebx + 0x81c]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x824]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x30]
add ecx, eax
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [0x63c450]
add eax, 0x3900
jne 0x4786aa
xor esi, esi
jmp 0x4786ad
mov esi, dword [eax + 0x20]
mov ebp, dword [sym.imp.USER32.dll_GetFocus]
call ebp
cmp eax, esi
je 0x4786c7
mov eax, dword [ebx + 0x78]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
jmp 0x4786d9
mov ecx, dword [ebx + 0x78]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x5c], eax
lea eax, [ebx + 0x5c]
test eax, eax
mov dword [esp + 0x54], ecx
je 0x478709
mov eax, dword [eax + 4]
push 0
push 1
push edi
lea ecx, [esp + 0x3c]
mov edx, eax
lea esi, [esp + 0x5c]
call fcn.004f97a0
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x80]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [0x63c450]
add esp, 0xc
add eax, 0x3900
jne 0x478746
xor esi, esi
jmp 0x478749
mov esi, dword [eax + 0x20]
call ebp
cmp eax, esi
je 0x478760
mov eax, dword [ebx + 0x80]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
jmp 0x478775
mov ecx, dword [ebx + 0x80]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x6c], ecx
sub ecx, eax
lea eax, [ebx + 0x64]
test eax, eax
mov ebp, ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x7c], eax
jne 0x4787ac
xor edx, edx
jmp 0x4787af
mov edx, dword [eax + 4]
push 0
push 1
push edi
lea ecx, [esp + 0x3c]
lea esi, [esp + 0x6c]
call fcn.004f97a0
mov edx, dword [esp + 0x68]
add esp, 0xc
push 0xffffff
lea eax, [esp + 0x24]
push eax
mov ecx, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ebp
call fcn.0055ba58
mov edx, dword [0x63c450]
mov eax, dword [esp + 0x2c]
mov ebp, dword [sym.imp.USER32.dll_InflateRect]
mov ecx, 0xfffffff6
sub ecx, dword [ebx + 0xe30]
add dword [esp + 0x28], ecx
sub eax, dword [edx + 0x3b54]
sub eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0xfffffffffffffffe
lea eax, [esp + 0x28]
push eax
call ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [0x63c450]
add ecx, 0x3900
call fcn.0055c18a
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0xe30]
mov esi, dword [esp + 0x24]
add eax, 8
add ecx, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], ecx
mov ecx, dword [ebx + 0xe34]
sub eax, ecx
sub eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
add ecx, eax
mov dword [esp + 0x64], eax
lea eax, [ebx + 0xdf4]
lea edx, [esp + 0x60]
mov dword [esp + 0x6c], ecx
call fcn.0049d2f0
cmp dword [esp + 0x14], 0
je 0x478a54
mov edx, dword [ebx + 0xa90]
add edx, dword [ebx + 0xa88]
mov eax, dword [ebx + 0xb2c]
mov ecx, dword [ebx + 0xa8c]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0xa94]
mov dword [esp + 0x40], edx
lea edx, [esp + 0x30]
add ecx, eax
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [0x63c450]
add eax, 0x3af0
jne 0x4788ec
xor esi, esi
jmp 0x4788ef
mov esi, dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
je 0x478907
mov eax, dword [ebx + 0x78]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
jmp 0x478919
mov ecx, dword [ebx + 0x78]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x4c]
add eax, ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x5c], eax
lea eax, [ebx + 0x5c]
test eax, eax
mov dword [esp + 0x54], ecx
je 0x478949
mov eax, dword [eax + 4]
push 0
push 1
push edi
lea ecx, [esp + 0x3c]
mov edx, eax
lea esi, [esp + 0x5c]
call fcn.004f97a0
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x44], eax
mov eax, dword [0x63c450]
add esp, 0xc
add eax, 0x3af0
jne 0x478977
xor esi, esi
jmp 0x47897a
mov esi, dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
je 0x478995
mov eax, dword [ebx + 0x80]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
jmp 0x4789aa
mov ebx, dword [ebx + 0x80]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x6c], ecx
sub ecx, eax
mov eax, dword [esp + 0x7c]
test eax, eax
mov ebx, ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x64], ebx
jne 0x4789de
xor edx, edx
jmp 0x4789e1
mov edx, dword [eax + 4]
push 0
push 1
push edi
lea ecx, [esp + 0x3c]
lea esi, [esp + 0x6c]
call fcn.004f97a0
mov edx, dword [esp + 0x68]
add esp, 0xc
push 0xffffff
lea eax, [esp + 0x44]
push eax
mov ecx, edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], ebx
call fcn.0055ba58
mov eax, dword [esp + 0x4c]
mov ecx, dword [0x63c450]
sub eax, dword [ecx + 0x3b54]
sub eax, dword [esp + 0x44]
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0xfffffffffffffffe
lea edx, [esp + 0x48]
push edx
call ebp
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x48]
sub edx, ecx
push edx
push eax
push ecx
jmp 0x478a5e
push 1
push 0
push 0
push 0
push 0
mov ecx, dword [0x63c450]
add ecx, 0x3af0
call fcn.0055c18a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0xc