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

Disassembly:
push 0xffffffffffffffff
push 0x435e11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov eax, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0x1004
push eax
call edi
lea ecx, [esp + 0x16]
lea edx, [esp + 0x14]
push ecx
push esi
push edx
lea ecx, [esp + 0x54]
call fcn.00409da0
lea eax, [esp + 0x15]
lea ecx, [esp + 0x17]
push eax
push esi
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0xe8], esi
call fcn.00409da0
lea edx, [esp + 0x12]
lea eax, [esp + 0x13]
push edx
push esi
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe8], 1
call fcn.00409da0
mov ecx, dword [ebp + 4]
push esi
push esi
push 0x1004
push ecx
mov byte [esp + 0xec], 2
xor ebx, ebx
call edi
cmp eax, esi
jle 0x408129
jmp 0x407ec4
xor esi, esi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xb0]
lea edx, [esp + 0xac]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 4]
push edx
push esi
push 0x104b
push eax
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xbc], 4
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0xcc]
neg eax
sbb eax, eax
and eax, ecx
mov esi, eax
je 0x40810b
cmp dword [esi + 0x58], 0x14
jae 0x40810b
mov edi, dword [esp + 0xe4]
mov eax, dword [esi]
lea ecx, [edi + 0x10]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x408060
add edi, 0x218
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x407f69
test edi, edi
jne 0x407f58
xor eax, eax
jmp 0x407f5f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [esi + 4]
call fcn.00404580
mov edx, dword [esp + 0xe4]
mov eax, dword [edx + 4]
mov dword [esi + 0x5c], 0
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x50]
test eax, eax
je 0x408008
mov ecx, dword [esi + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esi]
push 1
push 0x10
push eax
call fcn.00403450
add esp, 0xc
lea edx, [esp + 0x84]
mov ecx, ebp
mov dword [esi + 0x48], eax
push 0
push ebx
push edx
call fcn.00407710
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
mov edx, dword [esp + 0x84]
sub eax, ecx
sub edi, edx
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
and edi, 0xffff
and edx, 0xffff
shl ecx, 0x10
or eax, edi
or ecx, edx
push eax
mov eax, dword [ebp + 4]
push ecx
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
lea ecx, [esp + 0x78]
push ebx
push ecx
mov ecx, ebp
call fcn.00407710
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
sub eax, ecx
sub edi, edx
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
and edi, 0xffff
and edx, 0xffff
shl ecx, 0x10
or eax, edi
or ecx, edx
mov edx, dword [ebp + 4]
push eax
push ecx
push 0x7e8
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x44]
cmp eax, 0x28
jb 0x4080af
cmp eax, 0x32
jae 0x4080af
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x64]
xor esi, esi
push ecx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
call fcn.0040a2a0
lea eax, [esp + 0x68]
lea ecx, [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0x9c]
call fcn.0040a8e0
mov edx, dword [esp + 0x94]
mov dword [edx + 0x10], esi
jmp 0x40810b
cmp eax, 0x46
jb 0x4080d9
cmp eax, 0x50
jae 0x4080d9
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x6c]
xor esi, esi
lea edx, [esp + 0x9c]
push ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], esi
push edx
lea ecx, [esp + 0x3c]
jmp 0x408101
cmp eax, 0x32
jb 0x40810b
cmp eax, 0x46
jae 0x40810b
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x5c]
xor esi, esi
lea edx, [esp + 0xa4]
push ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
push edx
lea ecx, [esp + 0x28]
call fcn.00409cb0
mov eax, dword [eax]
mov dword [eax + 0x10], esi
mov eax, dword [ebp + 4]
push 0
push 0
push 0x1004
push eax
inc ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, eax
jl 0x407ec2
xor esi, esi
mov edx, dword [esp + 0xe8]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x44]
mov byte [esp + 0xdc], 1
mov dword [edx], ecx
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esp + 0xf0]
mov dword [eax], edx
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00409e20
mov edx, dword [esp + 0x24]
push edx
call fcn.0042329e
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
push eax
mov dword [esp + 0x38], esi
call fcn.0042329e
mov eax, dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x28], esi
mov byte [esp + 0xdc], 0
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.00409e20
mov edx, dword [esp + 0x38]
push edx
call fcn.0042329e
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], esi
push eax
mov dword [esp + 0x4c], esi
call fcn.0042329e
mov eax, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x3c], esi
mov dword [esp + 0xdc], 0xffffffff
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x54]
call fcn.00409e20
mov edx, dword [esp + 0x4c]
push edx
call fcn.0042329e
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], esi
push eax
mov dword [esp + 0x60], esi
call fcn.0042329e
mov ecx, dword [esp + 0xdc]
add esp, 8
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret 0x10