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

Disassembly:
sub esp, 0x10c
push ebx
push esi
push edi
xor esi, esi
mov ecx, dword [esp + 0x11c]
push ebp
add ecx, 0x10
lea edx, [esp + 0x68]
mov dword [esp + 0x50], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], esi
mov eax, dword [ecx]
mov dword [edx], eax
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebp, dword [ecx + 8]
mov dword [edx + 8], ebp
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x120]
push ecx
mov dword [edx + 0xc], eax
call fcn.004257e0
add dword [esp + 0x78], eax
mov eax, dword [esp + 0x128]
add esp, 4
cmp eax, esi
je 0x41fef4
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x42080c
mov eax, dword [esp + 0x120]
cmp word [eax + 0x2a], 0
jne 0x41ff1b
mov ax, word [eax + 0x6c]
cmp ax, 4
je 0x41ff1b
test ax, ax
je 0x41ff1b
cmp ax, 7
jne 0x42080c
xor si, si
mov eax, dword [esp + 0x120]
push eax
call fcn.0041e890
mov eax, dword [esp + 0x124]
add esp, 4
mov edx, dword [eax + 0x3a]
mov dword [esp + 0x28], edx
mov ax, word [eax + 0x3e]
test ax, ax
jle 0x41ff5e
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x28]
cmp dword [edx + 2], ecx
jg 0x41ff5e
inc si
add dword [esp + 0x28], 0xe
cmp si, ax
jl 0x41ff45
test si, si
jle 0x41ff6a
sub dword [esp + 0x28], 0xe
dec si
sub ax, si
mov edx, dword [esp + 0x120]
mov word [esp + 0x14], ax
mov ecx, dword [edx + 0x26]
mov ebx, dword [edx + 0x30]
mov ebp, dword [esp + 0x28]
movsx eax, word [edx + 0x34]
mov dword [esp + 0x2c], ecx
lea ecx, [eax + eax*4]
mov ax, word [ebp]
lea edx, [ebx + ecx*2 - 0xa]
mov ecx, dword [esp + 0x120]
push eax
mov dword [esp + 0x5c], edx
push ecx
call fcn.00420fd0
movsx ecx, ax
lea edx, [ecx + ecx*4]
add esp, 8
xor eax, eax
mov al, byte [ebx + edx*2 + 8]
lea ebx, [ebx + edx*2]
and eax, 1
cmp ebx, dword [esp + 0x58]
mov dword [esp + 0x40], eax
jb 0x41ffd0
mov word [esp + 0x1c], 0xffff
jmp 0x41ffd9
mov ax, word [ebx + 0xa]
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x120]
push eax
call fcn.00425d50
mov eax, dword [esp + 0x124]
add esp, 4
cmp dword [eax + 0x56], 0
jne 0x42000a
push eax
call fcn.0041e8e0
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
mov eax, dword [esp + 0x120]
cmp dword [eax + 0x5e], 0
je 0x420025
mov eax, dword [0x50be50]
mov ebp, dword [sym.imp.USER32.dll_HideCaret]
push eax
call ebp
mov eax, dword [esp + 0x120]
mov ax, word [eax + 0x6c]
cmp ax, 4
je 0x420041
test ax, ax
je 0x420041
cmp ax, 7
jne 0x42005a
mov eax, dword [esp + 0x120]
lea edx, [esp + 0x68]
mov ecx, dword [eax + 0x76]
push ecx
push edx
push eax
call fcn.0041f6d0
add esp, 0xc
mov eax, dword [esp + 0x120]
push eax
call fcn.00422ce0
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x124]
lea edx, [esp + 0xb0]
add esp, 4
push eax
push ebx
push ecx
push edx
call fcn.00420e10
lea edi, [esp + 0xa0]
add esp, 0x10
mov esi, eax
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x90]
lea edi, [esp + 0x100]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
cmp word [esp + 0x14], 0
jle 0x4207a2
mov ebp, dword [esp + 0xac]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x28]
cmp dword [edx + 2], eax
jge 0x4207a2
mov dword [esp + 0x38], 0
mov cx, word [edx]
test cx, cx
je 0x4200fc
mov eax, dword [esp + 0x120]
mov edx, dword [eax + 0x22]
mov esi, dword [edx]
movsx eax, cx
cmp byte [esi + eax - 1], 0xd
mov esi, 0
jne 0x420101
mov esi, 1
test esi, esi
jne 0x42010c
cmp dword [esp + 0x50], 0
jne 0x42012a
lea eax, [esp + 0x78]
push eax
push ecx
mov ecx, dword [esp + 0x128]
push ecx
call fcn.00421010
mov dword [esp + 0x5c], 1
add esp, 0xc
mov edx, dword [esp + 0x28]
mov ax, word [edx]
add edx, 0xe
mov word [esp + 0x22], ax
mov ecx, dword [esp + 0x120]
mov di, word [ecx + 0x2a]
mov dword [esp + 0x60], edx
mov word [esp + 0x20], ax
mov ax, word [edx]
mov word [esp + 0x1e], ax
cmp ax, di
jle 0x42015f
mov word [esp + 0x1e], di
mov edx, dword [esp + 0x28]
mov dword [esp + 0x3c], 0
mov ecx, dword [edx + 6]
mov dword [esp + 0x24], ecx
mov eax, dword [edx + 0xa]
sub eax, dword [ebx + 2]
mov dword [esp + 0x34], eax
cmp word [esp + 0x78], 3
jne 0x42022d
cmp word [esp + 0x1e], di
jge 0x42022d
cmp word [esp + 0x1e], 0
je 0x4201b3
mov eax, dword [esp + 0x120]
mov ecx, dword [eax + 0x22]
mov edx, dword [ecx]
movsx eax, word [esp + 0x1e]
cmp byte [edx + eax - 1], 0xd
je 0x42022d
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x22]
mov edx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x40], 2
push ecx
push edx
call fcn.00420820
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x8e]
sub eax, dword [esp + 0x8a]
add eax, dword [esp + 0x30]
add esp, 0xc
test esi, esi
mov dword [esp + 0x54], eax
je 0x4201f9
mov eax, dword [esp + 0x7a]
sub dword [esp + 0x54], eax
mov eax, dword [esp + 0x1e]
push 0
mov ecx, dword [esp + 0x26]
push eax
mov edx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x50], 0
mov word [esp + 0x26], 0xffff
mov word [esp + 0x24], 0
push edx
call fcn.00420870
mov word [esp + 0x22], ax
add esp, 0x10
mov ecx, dword [esp + 0x7e]
test esi, esi
je 0x42023d
mov ecx, dword [esp + 0x7a]
add ecx, dword [esp + 0x7e]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 6]
sub eax, ecx
mov cx, word [esp + 0x22]
mov dword [esp + 0x28], eax
cmp word [esp + 0x1e], cx
jle 0x4206de
cmp dword [0x50928c], 0
mov ebp, dword [esp + 0x3c]
je 0x42026f
mov ebp, dword [esp + 0x30]
or ebp, dword [esp + 0x3c]
test ebp, 2
je 0x42032c
cmp word [esp + 0x16], 0xffff
jne 0x42032c
cmp word [esp + 0x1a], 0xffff
jne 0x42032c
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1a]
push eax
push ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x26]
sub eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x2a]
push eax
push ecx
mov eax, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x8c]
push eax
mov edx, dword [esp + 0x138]
push ecx
push edx
call fcn.00420950
mov cx, word [esp + 0x3c]
add esp, 0x20
cmp word [esp + 0x1e], cx
jl 0x42032c
cmp cx, 0xffff
je 0x42032c
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x120]
lea edx, [esp + 0x90]
push eax
push ebx
push ecx
push edx
call fcn.00420e10
lea edi, [esp + 0xd8]
add esp, 0x10
mov esi, eax
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc8]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x50928c], 0
je 0x42032c
mov ebp, dword [esp + 0x30]
or ebp, dword [esp + 0x3c]
mov ax, word [esp + 0x22]
cmp ax, word [esp + 0x1c]
jne 0x4204bb
cmp dword [esp + 0x40], 0
jne 0x420417
test ebp, 2
je 0x420357
cmp word [esp + 0x16], 0xffff
je 0x42039d
test ebp, 4
jne 0x42039d
mov ax, word [esp + 0x22]
push ebx
sub ax, word [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
push eax
movsx eax, word [esp + 0x28]
add eax, dword [esp + 0x34]
push eax
push ecx
mov eax, dword [esp + 0x130]
push edx
push eax
call fcn.0041f2e0
mov dword [esp + 0x3c], eax
add esp, 0x18
mov dword [esp + 0x38], 0
jmp 0x420417
mov ax, word [esp + 0x22]
mov ecx, ebp
cmp word [esp + 0x12], ax
jle 0x4203ae
or ecx, 1
cmp word [esp + 0x16], 0xffff
je 0x4203b9
and ecx, 0xfffffffd
lea eax, [esp + 0x4c]
lea edx, [esp + 0x38]
lea esi, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x22]
push esi
push eax
push ecx
mov ax, word [esp + 0x32]
mov ecx, dword [esp + 0x5c]
sub ax, word [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x40]
push ebx
push eax
mov ax, word [esp + 0x46]
sub ax, word [esp + 0x44]
push eax
movsx eax, word [esp + 0x48]
add eax, dword [esp + 0x54]
push eax
push ecx
mov eax, dword [esp + 0x150]
push edx
push eax
call fcn.00420aa0
mov dword [esp + 0x5c], eax
add esp, 0x38
mov eax, dword [ebx + 2]
test eax, eax
je 0x420422
add dword [esp + 0x34], eax
mov ax, word [esp + 0x22]
add ebx, 0xa
mov word [esp + 0x20], ax
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x120]
push ecx
lea edx, [esp + 0xb0]
push ebx
push eax
push edx
call fcn.00420e10
lea edi, [esp + 0xf4]
add esp, 0x10
mov esi, eax
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xe4]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x50928c], 0
je 0x42047c
mov ebp, dword [esp + 0x30]
or ebp, dword [esp + 0x3c]
mov eax, dword [ebx + 2]
test eax, eax
je 0x420487
sub dword [esp + 0x34], eax
xor eax, eax
mov al, byte [ebx + 8]
and eax, 1
cmp ebx, dword [esp + 0x58]
mov dword [esp + 0x40], eax
jb 0x4204a2
mov word [esp + 0x1c], 0xffff
jmp 0x4204ab
mov ax, word [ebx + 0xa]
mov word [esp + 0x1c], ax
mov ax, word [esp + 0x22]
cmp ax, word [esp + 0x1c]
je 0x42033c
movsx eax, word [esp + 0x22]
mov esi, dword [esp + 0x2c]
add esi, eax
cmp byte [esi], 9
jne 0x4206ae
cmp dword [esp + 0x40], 0
jne 0x42058a
cmp dword [0x50928c], 0
je 0x42054e
cmp dword [esp + 0x30], 0
je 0x42054e
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x2a]
push ecx
push edx
push eax
mov ax, word [esp + 0x3a]
push ebx
sub ax, word [esp + 0x40]
push eax
mov ax, word [esp + 0x46]
mov ecx, dword [esp + 0x58]
sub ax, word [esp + 0x44]
mov edx, dword [esp + 0x48]
push eax
movsx eax, word [esp + 0x48]
add eax, dword [esp + 0x54]
push eax
push ecx
mov eax, dword [esp + 0x150]
push edx
push eax
call fcn.00420aa0
mov dword [esp + 0x5c], eax
add esp, 0x38
jmp 0x42058a
mov ax, word [esp + 0x22]
push ebx
sub ax, word [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
push eax
movsx eax, word [esp + 0x28]
add eax, dword [esp + 0x34]
push eax
push ecx
mov eax, dword [esp + 0x130]
push edx
push eax
call fcn.0041f2e0
mov dword [esp + 0x3c], eax
add esp, 0x18
mov dword [esp + 0x38], 0
mov di, word [esp + 0x22]
lea ecx, [esp + 0x64]
inc di
push ecx
mov word [esp + 0x24], di
lea eax, [esp + 0x60]
lea ecx, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x30]
push eax
push ecx
call fcn.00420f50
add esp, 0x10
test eax, eax
je 0x4205f8
xor eax, eax
cmp dword [esp + 0x64], eax
je 0x4205e5
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x120]
sub eax, dword [esp + 0x24]
push eax
mov ax, word [esp + 0x22]
sub ax, di
push eax
push edi
push ecx
call fcn.00422bc0
add esp, 0x10
mov ecx, dword [esp + 0x28]
sub ecx, eax
add ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], ecx
jmp 0x42068e
cmp dword [esp + 0x40], 0
jne 0x42068e
cmp dword [0x50928c], 0
je 0x420660
cmp dword [esp + 0x30], 0
je 0x420660
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x2a]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x13c]
push ebx
push 1
push 1
push 0x5052f4
push ecx
push edx
push eax
call fcn.00420aa0
mov dword [esp + 0x5c], eax
add esp, 0x38
jmp 0x42068e
mov eax, dword [esp + 0x34]
push ebx
mov ecx, dword [esp + 0x28]
push 1
mov edx, dword [esp + 0x128]
push 0x5052f4
push eax
push ecx
push edx
call fcn.0041f2e0
mov dword [esp + 0x3c], eax
add esp, 0x18
mov dword [esp + 0x38], 0
test ebp, 2
je 0x4206ae
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x2c]
push eax
push edi
push ecx
call fcn.00420820
mov word [esp + 0x22], ax
add esp, 0xc
cmp dword [0x50928c], 0
jne 0x4206be
inc word [esp + 0x22]
jmp 0x4206ce
push esi
call dword [sym.imp.USER32.dll_CharNextA]
sub eax, dword [esp + 0x2c]
mov word [esp + 0x22], ax
mov ax, word [esp + 0x22]
cmp word [esp + 0x1e], ax
jg 0x42025a
mov cx, word [esp + 0x1e]
mov ax, word [esp + 0x22]
cmp cx, ax
jl 0x4206f0
mov cx, ax
cmp dword [esp + 0x40], 0
jne 0x420789
test ebp, ebp
je 0x420756
lea eax, [esp + 0x4c]
lea edx, [esp + 0x38]
lea esi, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x26]
push eax
mov ax, word [esp + 0x2e]
push ebp
sub ax, word [esp + 0x34]
push edx
sub cx, word [esp + 0x38]
push esi
push ebx
push eax
mov edx, dword [esp + 0x48]
push ecx
movsx eax, word [esp + 0x48]
add eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
mov eax, dword [esp + 0x150]
push edx
push eax
call fcn.00420aa0
add esp, 0x38
jmp 0x420789
sub cx, word [esp + 0x20]
push ebx
movsx eax, word [esp + 0x24]
add eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
mov edx, dword [esp + 0x30]
push ecx
mov eax, dword [esp + 0x130]
push edx
push eax
call fcn.0041f2e0
mov dword [esp + 0x50], 0
add esp, 0x18
dec word [esp + 0x14]
mov edx, dword [esp + 0x60]
cmp word [esp + 0x14], 0
mov dword [esp + 0x28], edx
jg 0x4200c0
lea eax, [esp + 0x100]
mov ecx, dword [esp + 0x120]
push eax
mov edx, dword [ecx + 0x56]
lea eax, [esp + 0xb0]
push edx
push eax
call fcn.004698f0
lea edi, [esp + 0x9c]
add esp, 0xc
mov esi, eax
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x90]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x120]
cmp dword [ecx + 0x5e], 0
je 0x4207fc
mov eax, dword [0x50be50]
push eax
call dword [sym.imp.USER32.dll_ShowCaret]
mov eax, dword [esp + 0x120]
push eax
call fcn.0041e8e0
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10c
ret