Function at 0x413611
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffac
mov ebp, ecx
mov dword [esp + 4], edx
mov dword [esp], eax
lea edi, [esp + 0x39]
push 0
push 0
push 0xb
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
lea eax, [esp + 0xc]
push eax
push 0
push 0x434
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov esi, dword [esp + 0x10]
sub esi, dword [esp + 0xc]
push 0
push 0
push 0xce
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov dword [esp + 8], eax
test esi, esi
sete byte [esp + 0x1c]
test esi, esi
je 0x4131a1
cmp dword [esp], 0x22
jne 0x4131dc
xor eax, eax
mov dword [esp + 0x14], eax
push 0
push 0
push 0xe
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, ebx
lea eax, [esp + 0x14]
push eax
push 0
push 0x437
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4132c2
cmp dword [esp], 0x13
je 0x4131f8
cmp dword [esp], 0x14
je 0x4131f8
cmp dword [esp], 0x15
je 0x4131f8
cmp dword [esp], 0x16
jne 0x4132c2
mov eax, dword [esp + 0xc]
push eax
push 0
push 0x436
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov dword [esp + 0x18], eax
push 0
mov eax, dword [esp + 0x1c]
push eax
push 0xbb
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov ebx, dword [esp + 0xc]
sub ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
jle 0x4132c2
sub dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
push eax
push 0
push 0x436
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov dword [esp + 0x18], eax
push 0
mov eax, dword [esp + 0x1c]
push eax
push 0xbb
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov edx, dword [esp + 0x10]
sub edx, eax
mov dword [esp + 0x14], edx
push 0
push eax
push 0xc1
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
cmp ebx, dword [esp + 0x14]
jle 0x4132a3
add ebx, dword [esp + 0x10]
sub ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0xc]
push eax
push 0
push 0x437
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov esi, dword [esp + 0x10]
sub esi, dword [esp + 0xc]
test esi, esi
je 0x413ca0
xor eax, eax
mov dword [esp + 0x4d], eax
lea eax, [esi + 2]
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
mov dword [edi + 8], ebx
test ebx, ebx
je 0x413ca0
push ebx
push 0
push 0x43e
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov dword [edi + 4], eax
mov eax, dword [esp]
add eax, 0xffffffed
cmp eax, 0x11
ja case.0x413313.19
mov al, byte [eax + 0x41331a]
jmp dword [eax*4 + 0x41332c]
cmp dword [esp + 4], 0
jl 0x413386
mov eax, dword [edi + 4]
dec eax
test eax, eax
jl 0x413386
inc eax
xor esi, esi
mov edx, dword [edi + 8]
cmp byte [edx + esi], 0x80
jb 0x413382
mov edx, dword [edi + 8]
movzx edx, byte [edx + esi]
mov ecx, dword [esp + 4]
shl ecx, 4
lea ecx, [ecx*8 + 0x41732c]
mov dl, byte [ecx + edx - 0x80]
mov ecx, dword [edi + 8]
mov byte [ecx + esi], dl
inc esi
dec eax
jne 0x41335a
test ebp, ebp
jl 0x4133c4
cmp ebp, 7
jg 0x4133c4
mov eax, dword [edi + 4]
dec eax
test eax, eax
jl 0x4133c4
inc eax
xor esi, esi
mov edx, dword [edi + 8]
cmp byte [edx + esi], 0x80
jb 0x4133c0
mov edx, dword [edi + 8]
movzx edx, byte [edx + esi]
mov ecx, ebp
shl ecx, 4
lea ecx, [ecx*8 + 0x41732c]
mov dl, byte [ecx + edx - 0x80]
mov ecx, dword [edi + 8]
mov byte [ecx + esi], dl
inc esi
dec eax
jne 0x41339a
cmp ebp, 9
jne 0x4133f8
mov eax, dword [edi + 4]
dec eax
test eax, eax
jl 0x4133f8
inc eax
xor esi, esi
mov edx, dword [edi + 8]
mov dl, byte [edx + esi]
sub dl, 0x8d
je 0x4133ed
sub dl, 0x53
jne 0x4133f4
mov edx, dword [edi + 8]
mov byte [edx + esi], 0x70
jmp 0x4133f4
mov edx, dword [edi + 8]
mov byte [edx + esi], 0x48
inc esi
dec eax
jne 0x4133d4
cmp byte [esp + 0x1c], 0
je 0x41342d
cmp dword [esp], 0x1b
je 0x41342d
mov edx, dword [edi + 4]
mov al, 6
call fcn.0040e0d0
mov al, byte [esp]
sub al, 0x1d
mov byte [0x4177cc], al
cmp dword [esp], 0x20
jne 0x413426
mov byte [0x4177cc], 1
call fcn.0040dd7c
jmp 0x413437
mov edx, dword [edi + 4]
mov al, 4
call fcn.0040e0d0
mov eax, edi
mov edx, 0x8001
call fcn.0040e070
lea eax, [esp + 0xc]
push eax
push 0
push 0x437
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
jmp case.0x413313.19
mov eax, esi
add eax, eax
inc eax
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [esp + 0x4d], eax
cmp dword [esp + 0x4d], 0
je 0x413c97
mov dword [esp + 0x49], 0xffffffff
cmp byte [0x4177cc], 1
je 0x4134ce
mov eax, dword [edi + 4]
dec eax
test eax, eax
jl 0x4134ce
inc eax
xor esi, esi
mov edx, dword [edi + 8]
cmp byte [edx + esi], 0x80
jb 0x4134ca
mov edx, dword [edi + 8]
movzx edx, byte [edx + esi]
xor ecx, ecx
mov cl, byte [0x4177cc]
mov ecx, dword [ecx*4 + 0x4172ac]
shl ecx, 4
lea ecx, [ecx*8 + 0x41732c]
mov dl, byte [ecx + edx - 0x80]
mov ecx, dword [edi + 8]
mov byte [ecx + esi], dl
inc esi
dec eax
jne 0x413497
mov eax, dword [edi + 4]
test eax, eax
jl 0x4135d0
inc eax
xor esi, esi
inc dword [esp + 0x49]
mov edx, dword [edi + 8]
mov dl, byte [edx + esi]
cmp dl, 0x80
jb 0x4135b7
mov ecx, dword [esp + 0x4d]
mov ebx, dword [esp + 0x49]
lea ebx, [ecx + ebx]
and edx, 0xff
mov dl, byte [edx + 0x4176ac]
mov byte [ebx], dl
mov edx, dword [edi + 8]
movzx edx, byte [edx + esi]
cmp edx, 0xa6
jg 0x413536
je 0x41355d
sub edx, 0x86
je 0x41354b
add edx, 0xffffffef
sub edx, 3
jb 0x41354b
sub edx, 4
je 0x41356f
dec edx
je 0x413593
jmp 0x4135c8
add edx, 0xffffff19
sub edx, 3
jb 0x41355d
sub edx, 4
je 0x413581
dec edx
je 0x4135a5
jmp 0x4135c8
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], 0x48
jmp 0x4135c8
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], 0x68
jmp 0x4135c8
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], 0x55
jmp 0x4135c8
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], 0x75
jmp 0x4135c8
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], 0x41
jmp 0x4135c8
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], 0x61
jmp 0x4135c8
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov ebx, dword [edi + 8]
mov bl, byte [ebx + esi]
mov byte [edx + ecx], bl
inc esi
dec eax
jne 0x4134dc
mov edx, dword [esp + 0x49]
mov al, 4
call fcn.0040e0d0
lea eax, [esp + 0x45]
mov edx, 0x8001
call fcn.0040e070
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x49]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x437
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
jmp case.0x413313.19
mov eax, dword [edi + 8]
cmp byte [eax], 0x7b
jne case.0x413313.19
cmp byte [eax + 1], 0x5c
jne case.0x413313.19
cmp byte [eax + 2], 0x72
jne case.0x413313.19
cmp byte [eax + 3], 0x74
jne case.0x413313.19
cmp byte [eax + 4], 0x66
jne case.0x413313.19
push 0
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov al, 6
call fcn.0040e0d0
mov eax, edi
mov edx, 2
call fcn.0040e070
push 0
push 0
push 0xb1
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
cmp dword [0x418994], 0
jne 0x413690
mov dword [0x418994], 0x100080
jmp 0x413697
xor eax, eax
mov dword [0x418994], eax
call fcn.00410538
jmp case.0x413313.19
mov eax, esi
add eax, eax
inc eax
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [esp + 0x4d], eax
cmp dword [esp + 0x4d], 0
je 0x413c97
mov dword [esp + 0x49], 0xffffffff
xor esi, esi
jmp 0x413785
inc dword [esp + 0x49]
cmp eax, esi
jle 0x4136e8
mov eax, dword [edi + 8]
cmp byte [eax + esi], 0x5c
jne 0x4136e8
mov eax, dword [edi + 8]
cmp byte [eax + esi + 1], 0x27
jne 0x4136e8
inc esi
mov eax, dword [edi + 8]
mov al, byte [eax + esi]
cmp al, 0x3d
je 0x4136f6
cmp al, 0x27
jne 0x413773
xor eax, eax
mov ebx, 1
lea edx, [ebx + esi]
mov ecx, dword [edi + 8]
mov cl, byte [ecx + edx]
add cl, 0xd0
sub cl, 0xa
jb 0x413720
add cl, 0xf9
sub cl, 6
jb 0x413733
add cl, 0xe6
sub cl, 6
jb 0x413749
jmp 0x413773
mov ecx, dword [edi + 8]
movzx edx, byte [ecx + edx]
shl eax, 4
add edx, eax
sub edx, 0x30
mov eax, edx
jmp 0x41375d
mov ecx, dword [edi + 8]
movzx edx, byte [ecx + edx]
shl eax, 4
add edx, eax
sub edx, 0x41
add edx, 0xa
mov eax, edx
jmp 0x41375d
mov ecx, dword [edi + 8]
movzx edx, byte [ecx + edx]
shl eax, 4
add edx, eax
sub edx, 0x61
add edx, 0xa
mov eax, edx
inc ebx
cmp ebx, 3
jne 0x4136fd
add esi, 2
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], al
jmp 0x413784
mov eax, dword [esp + 0x4d]
mov edx, dword [esp + 0x49]
mov ecx, dword [edi + 8]
mov cl, byte [ecx + esi]
mov byte [eax + edx], cl
inc esi
mov eax, dword [edi + 4]
cmp esi, eax
jle 0x4136cc
mov edx, dword [esp + 0x49]
mov al, 4
call fcn.0040e0d0
lea eax, [esp + 0x45]
mov edx, 0x8001
call fcn.0040e070
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x49]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x437
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
jmp case.0x413313.19
mov eax, esi
add eax, eax
inc eax
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [esp + 0x4d], eax
cmp dword [esp + 0x4d], 0
je 0x413c97
mov dword [esp + 0x49], 0xffffffff
mov eax, dword [edi + 4]
test eax, eax
jl 0x41383b
inc eax
xor esi, esi
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov ebx, dword [edi + 8]
mov bl, byte [ebx + esi]
mov byte [edx + ecx], bl
mov edx, dword [edi + 8]
cmp byte [edx + esi], 0xd
jne 0x413837
mov edx, dword [edi + 8]
cmp byte [edx + esi + 1], 0xa
je 0x413837
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], 0xa
inc esi
dec eax
jne 0x4137ff
mov edx, dword [esp + 0x49]
mov al, 4
call fcn.0040e0d0
lea eax, [esp + 0x45]
mov edx, 0x8001
call fcn.0040e070
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x49]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x437
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
jmp case.0x413313.19
mov eax, esi
shl eax, 3
add eax, 0xffff
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [esp + 0x4d], eax
cmp dword [esp + 0x4d], 0
je 0x413c97
mov dword [esp + 0x49], 0xffffffff
mov eax, 0x413cfc
xor edx, edx
call fcn.0040dbc8
test eax, eax
setne byte [esp + 0x38]
mov eax, 0x413d00
xor edx, edx
call fcn.0040dbc8
mov dword [esp + 0x28], eax
mov eax, 0x413d04
xor edx, edx
call fcn.0040dbc8
mov dword [esp + 0x30], eax
mov eax, 0x413d08
mov edx, 0x50
call fcn.0040dbc8
mov dword [esp + 0x24], eax
cmp dword [esp], 0x14
jne 0x4138f9
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
sub eax, 8
cmp eax, dword [esp + 0x28]
jg 0x41390c
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
sub eax, 8
cmp eax, dword [esp + 0x30]
jg 0x41391f
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x30]
cmp ebx, 1
jl 0x413945
inc dword [esp + 0x49]
mov eax, dword [esp + 0x4d]
mov edx, dword [esp + 0x49]
mov byte [eax + edx], 0x20
dec ebx
test ebx, ebx
jne 0x413930
xor esi, esi
jmp 0x413c44
cmp dword [esp + 0x30], 0
jge 0x41397b
mov ebx, dword [esp + 0x28]
cmp ebx, 1
jl 0x413971
inc dword [esp + 0x49]
mov eax, dword [esp + 0x4d]
mov edx, dword [esp + 0x49]
mov byte [eax + edx], 0x20
dec ebx
test ebx, ebx
jne 0x41395c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], eax
jmp 0x413983
mov dword [esp + 0x30], 0xffffffff
xor eax, eax
mov dword [esp + 0x20], eax
xor ebp, ebp
mov ebx, esi
jmp 0x4139e0
inc ebx
cmp byte [esp + 0x38], 0
jne 0x4139a2
mov eax, dword [edi + 8]
cmp byte [eax + ebx], 0xa
je 0x4139fb
mov eax, dword [edi + 4]
dec eax
cmp ebx, eax
jge 0x4139b9
mov eax, dword [edi + 8]
mov al, byte [eax + ebx]
call fcn.00413118
test al, al
jne 0x413991
mov eax, dword [edi + 4]
dec eax
cmp ebx, eax
jge 0x4139c9
inc dword [esp + 0x20]
jmp 0x4139c9
inc ebx
inc ebp
mov eax, dword [edi + 4]
dec eax
cmp ebx, eax
jge 0x4139e0
mov eax, dword [edi + 8]
mov al, byte [eax + ebx]
call fcn.00413118
test al, al
je 0x4139c7
mov eax, dword [edi + 4]
dec eax
cmp ebx, eax
jge 0x4139fb
mov eax, dword [esp + 0x20]
add eax, ebp
dec eax
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x34]
cmp eax, edx
jle 0x4139a2
mov eax, dword [esp + 0x20]
add eax, ebp
dec eax
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x34]
cmp eax, edx
jle 0x413a46
cmp dword [esp + 0x20], 1
jle 0x413a46
dec dword [esp + 0x20]
jmp 0x413a1c
dec ebx
test ebx, ebx
jle 0x413a33
mov eax, dword [edi + 8]
mov al, byte [eax + ebx]
call fcn.00413118
test al, al
jne 0x413a1b
jmp 0x413a33
dec ebx
dec ebp
test ebx, ebx
jle 0x413a46
mov eax, dword [edi + 8]
mov al, byte [eax + ebx]
call fcn.00413118
test al, al
je 0x413a31
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x34]
sub eax, ebp
sub eax, dword [esp + 0x20]
inc eax
mov ebp, eax
mov eax, dword [esp]
sub eax, 0x13
je 0x413a79
dec eax
je 0x413b68
dec eax
je 0x413ba9
dec eax
je 0x413b8d
jmp 0x413c24
xor eax, eax
mov dword [esp + 0x2c], eax
test ebp, ebp
jle 0x413ab7
cmp dword [esp + 0x20], 1
jle 0x413ab7
mov eax, dword [edi + 4]
dec eax
cmp ebx, eax
jge 0x413ab7
mov eax, dword [esp + 0x20]
dec eax
push eax
mov eax, ebp
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
dec eax
push eax
mov eax, ebp
pop edx
mov ecx, edx
cdq
idiv ecx
inc eax
mov ebp, eax
jmp 0x413abc
mov ebp, 1
cmp ebx, esi
jl 0x413c24
jmp 0x413ac7
inc esi
cmp ebx, esi
jl 0x413ada
mov eax, dword [edi + 8]
mov al, byte [eax + esi]
call fcn.00413118
test al, al
jne 0x413ac6
cmp ebx, esi
jl 0x413b09
mov eax, dword [edi + 8]
mov al, byte [eax + esi]
call fcn.00413118
test al, al
jne 0x413b09
dec dword [esp + 0x20]
jmp 0x413b09
inc dword [esp + 0x49]
mov eax, dword [esp + 0x4d]
mov edx, dword [esp + 0x49]
mov ecx, dword [edi + 8]
mov cl, byte [ecx + esi]
mov byte [eax + edx], cl
inc esi
cmp ebx, esi
jl 0x413b1c
mov eax, dword [edi + 8]
mov al, byte [eax + esi]
call fcn.00413118
test al, al
je 0x413af3
cmp dword [esp + 0x20], 0
jle 0x413b5b
cmp ebx, esi
jle 0x413b5b
mov eax, ebp
test eax, eax
jle 0x413b40
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], 0x20
dec eax
jne 0x413b2d
cmp dword [esp + 0x2c], 0
jle 0x413b5b
inc dword [esp + 0x49]
mov eax, dword [esp + 0x4d]
mov edx, dword [esp + 0x49]
mov byte [eax + edx], 0x20
dec dword [esp + 0x2c]
cmp ebx, esi
jge 0x413ac7
jmp 0x413c24
mov eax, ebp
sar eax, 1
jns 0x413b71
adc eax, 0
cmp eax, 1
jl 0x413ba9
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], 0x20
dec eax
test eax, eax
jne 0x413b76
jmp 0x413ba9
mov eax, ebp
cmp eax, 1
jl 0x413ba9
inc dword [esp + 0x49]
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x49]
mov byte [edx + ecx], 0x20
dec eax
test eax, eax
jne 0x413b94
cmp ebx, esi
jl 0x413c24
jmp 0x413bb0
inc esi
cmp ebx, esi
jl 0x413bc3
mov eax, dword [edi + 8]
mov al, byte [eax + esi]
call fcn.00413118
test al, al
jne 0x413baf
cmp ebx, esi
jl 0x413bf2
mov eax, dword [edi + 8]
mov al, byte [eax + esi]
call fcn.00413118
test al, al
jne 0x413bf2
dec dword [esp + 0x20]
jmp 0x413bf2
inc dword [esp + 0x49]
mov eax, dword [esp + 0x4d]
mov edx, dword [esp + 0x49]
mov ecx, dword [edi + 8]
mov cl, byte [ecx + esi]
mov byte [eax + edx], cl
inc esi
cmp ebx, esi
jl 0x413c05
mov eax, dword [edi + 8]
mov al, byte [eax + esi]
call fcn.00413118
test al, al
je 0x413bdc
cmp dword [esp + 0x20], 0
jle 0x413c20
cmp ebx, esi
jle 0x413c20
inc dword [esp + 0x49]
mov eax, dword [esp + 0x4d]
mov edx, dword [esp + 0x49]
mov byte [eax + edx], 0x20
cmp ebx, esi
jge 0x413bb0
inc dword [esp + 0x49]
mov eax, dword [esp + 0x4d]
mov edx, dword [esp + 0x49]
mov byte [eax + edx], 0xd
inc dword [esp + 0x49]
mov eax, dword [esp + 0x4d]
mov edx, dword [esp + 0x49]
mov byte [eax + edx], 0xa
cmp esi, dword [edi + 4]
jl 0x41394c
inc dword [esp + 0x49]
mov edx, dword [esp + 0x49]
mov al, 4
call fcn.0040e0d0
lea eax, [esp + 0x45]
mov edx, 0x8001
call fcn.0040e070
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x437
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [esp + 0x4d]
test eax, eax
je 0x413c97
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_GlobalFree
push 0
push 0
push 0xce
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
cmp eax, dword [esp + 8]
jle 0x413cd3
mov edx, dword [esp + 8]
sub edx, eax
push edx
push 0
push 0xb6
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
push 0
push 1
push 0xb
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_SendMessageA
push 0
push 0
mov eax, dword [0x4177ac]
push eax
call sub.user32.dll_InvalidateRect
add esp, 0x54
pop ebp
pop edi
pop esi
pop ebx
ret