Function at 0x40c870
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x453c77
push eax
mov dword fs:[0], esp
mov eax, dword [0x471e68]
sub esp, 0x970
push ebx
push ebp
mov ebp, ecx
push esi
xor ecx, ecx
push edi
cmp eax, ecx
je 0x40d480
mov eax, dword [0x46d688]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x988], ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov byte [esp + 0x988], 1
cmp eax, ecx
je 0x40d45b
mov eax, dword [0x471e70]
mov dword [esp + 0x24], ecx
cmp eax, ecx
jle 0x40d45b
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40d428
mov edi, dword [esp + 0x24]
mov ecx, dword [0x471e68]
mov eax, edi
xor ebx, ebx
shl eax, 5
add eax, edi
lea edi, [edi + eax*2]
shl edi, 5
mov dword [esp + 0x10], edi
lea edx, [edi + ecx + 0x21]
lea ecx, [esp + 0x3c]
push edx
call fcn.00444bfb
mov eax, dword [0x471f74]
mov byte [esp + 0x988], 2
test eax, eax
je 0x40c9d1
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40c9d1
push 0x46bbd0
push eax
call fcn.0042a095
add esp, 8
test eax, eax
je 0x40c9d1
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00444902
mov ecx, ebp
call fcn.0040d7b0
mov eax, dword [ebp + 0x30]
mov esi, dword [ebp + 0x28]
test eax, eax
mov dword [esp + 0x14], ebx
jle 0x40c9d1
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x40]
push eax
call fcn.00444902
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x40]
push eax
push ecx
call fcn.0042a095
add esp, 8
mov byte [esp + 0x988], 2
test eax, eax
lea ecx, [esp + 0x40]
je 0x40c9cc
call fcn.00444b8d
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40c983
jmp 0x40c9d1
call fcn.00444b8d
mov edx, dword [0x471e68]
cmp dword [edi + edx], 0
jne 0x40ca05
mov eax, dword [ebp + 0x3c28]
mov esi, dword [edi + edx + 8]
test eax, eax
lea edi, [edi + edx + 0x5e]
je 0x40cacd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
je 0x40cc1e
mov eax, dword [esp + 0x10]
mov esi, dword [eax + edx + 8]
mov eax, dword [ebp + 0xc]
sub eax, esi
mov dword [esp + 0x2c], esi
lea edi, [esi + 1]
mov dword [esp + 0x54], eax
push edi
call fcn.004448ce
mov edx, eax
mov ecx, edi
mov dword [esp + 0x18], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov eax, dword [0x471e68]
mov edi, dword [esp + 0x14]
mov ecx, esi
lea esi, [edx + eax + 0x5e]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x54]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jl 0x40cae4
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x2b]
lea edx, [esp + 0x180]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x20]
push eax
push esi
push ecx
push edx
mov byte [esp + 0x43], 0
call fcn.0041b7e0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x40cae8
mov eax, dword [0x471e68]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 2
mov dword [esp + 0x34], 1
lea edx, [ecx + eax + 0xc]
lea eax, [esp + 0x20]
push edx
push 0x46b198
push eax
call fcn.0043e845
add esp, 0xc
jmp 0x40cae8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
je 0x40cc1e
jmp 0x40d400
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40caf5
push esi
call fcn.004448f7
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d400
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
mov eax, dword [eax - 8]
push eax
call fcn.00444fbd
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
push eax
call fcn.00444fbd
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x168]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x471e68]
mov eax, dword [edx + ecx + 4]
dec eax
cmp eax, 4
ja case.default.0x40cb82
jmp dword [eax*4 + 0x40d4a0]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 4]
push eax
push ecx
lea edx, [esp + 0x24]
push 0x46bb74
push edx
mov dword [esp + 0x18c], 1
call fcn.0043e845
mov eax, dword [0x471f78]
add esp, 0x10
test eax, eax
je 0x40cbda
mov eax, dword [esp + 0x990]
test eax, eax
jne 0x40cbda
mov eax, dword [esp + 0x1c]
push 0
push 1
push eax
call fcn.00448f75
cmp eax, 2
je 0x40d0d4
mov eax, dword [0x471f40]
test eax, eax
jne 0x40cbee
mov eax, dword [esp + 0x990]
test eax, eax
je 0x40cc06
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x17c], ecx
mov eax, dword [ebp + 0x3c2c]
lea edx, [esp + 0x64]
push edx
push 3
push 0x46b
push eax
jmp 0x40d3e7
lea edi, [esi + 1]
push edi
call fcn.004448ce
mov ecx, edi
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov dword [esp + 0x1c], edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x471e68]
mov ecx, esi
mov esi, dword [esp + 0x18]
mov edi, edx
lea esi, [esi + eax + 0x5e]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0041b790
mov ebx, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x40cc82
mov edx, eax
push edx
call fcn.004448f7
add esp, 4
test ebx, ebx
je 0x40ccb8
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
mov eax, dword [0x471e68]
lea edx, [ecx + eax + 0xc]
lea eax, [esp + 0x20]
push edx
push 0x46b198
push eax
call fcn.0043e845
add esp, 0xc
jmp 0x40cb01
mov eax, dword [ebp + 0x3c28]
test eax, eax
je 0x40d400
push 0x801
call fcn.004448ce
mov edi, eax
mov ecx, 0x200
xor eax, eax
mov dword [esp + 0x48], edi
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
stosb byte es:[edi], al
mov eax, dword [0x471e68]
mov edi, dword [esp + 0x48]
mov ecx, dword [edx + eax + 8]
lea esi, [edx + eax + 0x5e]
mov dword [esp + 0x54], ecx
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x50], 0
lea eax, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
lea edx, [esp + 0x4c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x58]
push ecx
push edx
call fcn.0041b8d0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0xc]
mov edx, ecx
add esp, 0x10
sub edx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
js 0x40d400
lea edx, [esp + 0x2a]
mov byte [esp + 0x2a], 0
push edx
lea edx, [esp + 0x584]
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0041b7e0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x40d400
mov edx, dword [0x471e68]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 3
mov dword [esp + 0x34], 1
lea ecx, [eax + edx + 0xc]
lea edx, [esp + 0x20]
push ecx
push 0x46b198
push edx
call fcn.0043e845
add esp, 0xc
jmp 0x40cb01
mov eax, dword [esp + 0x18]
mov dword [esp + 0x17c], 2
cmp eax, 3
jne 0x40cdca
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
jmp 0x40cdd6
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx + 8]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x14]
sub ecx, esi
inc ecx
push ecx
call fcn.004448ce
mov ecx, dword [ebp + 0xc]
add esp, 4
sub ecx, esi
mov edx, eax
inc ecx
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0x10], edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [ebp + 0x20]
mov ecx, ebx
sub ecx, esi
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x20]
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0xc]
mov ecx, eax
sub ecx, esi
add esi, ebx
sub ecx, ebx
add ecx, edi
mov edi, edx
sub edi, eax
mov edx, ecx
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40ce5d
push eax
call fcn.004448f7
add esp, 4
mov dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov ebx, dword [esp + 0x14]
sub eax, ebx
inc eax
push eax
call fcn.004448ce
mov ecx, dword [ebp + 0xc]
mov edi, eax
sub ecx, ebx
xor eax, eax
inc ecx
mov dword [ebp + 0x20], edi
mov edx, ecx
mov esi, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x20]
sub ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 4]
sub eax, ebx
mov dword [ebp + 0xc], eax
push ecx
push edx
lea eax, [esp + 0x28]
push 0x46babc
push eax
call fcn.0043e845
mov eax, dword [0x471f78]
add esp, 0x14
test eax, eax
je 0x40ceec
mov eax, dword [esp + 0x990]
test eax, eax
jne 0x40ceec
mov ecx, dword [esp + 0x1c]
push 0
push 1
push ecx
call fcn.00448f75
cmp eax, 2
je 0x40cf22
mov eax, dword [0x471f40]
test eax, eax
jne 0x40cf00
mov eax, dword [esp + 0x990]
test eax, eax
je 0x40cf22
push 0
mov ecx, ebp
call fcn.0040d930
neg eax
sbb eax, eax
and al, 0xfe
add eax, 2
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x3c2c]
lea edx, [esp + 0x64]
push edx
push 3
push 0x46b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d3ed
mov ecx, eax
push ecx
call fcn.004448f7
add esp, 4
jmp 0x40d3ed
mov edx, dword [esp + 0x18]
mov eax, 3
cmp edx, eax
mov dword [esp + 0x17c], eax
jne 0x40cf71
mov esi, dword [esp + 0x30]
jmp 0x40cf79
mov edx, dword [esp + 0x10]
mov esi, dword [edx + ecx + 8]
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x471df0
call fcn.00444bfb
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push 3
mov ecx, ebp
call fcn.0040d4c0
mov ecx, esi
mov esi, dword [ebp + 0x18]
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 4]
push eax
push ecx
push 0x46ba30
push edx
call fcn.0043e845
mov eax, dword [0x471f78]
add esp, 0x10
test eax, eax
je 0x40cff8
mov eax, dword [esp + 0x990]
test eax, eax
jne 0x40cff8
mov eax, dword [esp + 0x1c]
push 0
push 1
push eax
call fcn.00448f75
cmp eax, 2
je 0x40d0d4
mov eax, dword [0x471f40]
test eax, eax
jne 0x40d010
mov eax, dword [esp + 0x990]
test eax, eax
je 0x40d3d4
push 0
mov ecx, ebp
call fcn.0040d930
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jmp 0x40d3d4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x17c], 4
cmp eax, 3
jne 0x40d051
mov esi, dword [esp + 0x30]
jmp 0x40d059
mov edx, dword [esp + 0x10]
mov esi, dword [edx + ecx + 8]
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x471df0
call fcn.00444bfb
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push 4
mov ecx, ebp
call fcn.0040d4c0
mov ecx, esi
mov esi, dword [ebp + 0x18]
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 4]
push eax
push ecx
push 0x46b9a4
push edx
call fcn.0043e845
mov eax, dword [0x471f78]
add esp, 0x10
test eax, eax
je 0x40d0ec
mov eax, dword [esp + 0x990]
test eax, eax
jne 0x40d0ec
mov eax, dword [esp + 0x1c]
push 0
push 1
push eax
call fcn.00448f75
cmp eax, 2
jne 0x40d0ec
mov edx, dword [ebp + 0x3c2c]
lea ecx, [esp + 0x64]
push ecx
push 3
push 0x46b
push edx
jmp 0x40d3e7
mov eax, dword [0x471f40]
test eax, eax
jne 0x40d104
mov eax, dword [esp + 0x990]
test eax, eax
je 0x40d3d4
push 0
mov ecx, ebp
call fcn.0040d930
neg eax
sbb eax, eax
and al, 0xfc
add eax, 4
jmp 0x40d022
mov eax, dword [ebp + 0x1c]
lea esi, [ebp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x180], 5
call fcn.004212f0
mov eax, dword [esp + 0x18]
mov byte [esp + 0x988], 4
cmp eax, 3
jne 0x40d165
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x30]
push eax
mov dword [esp + 0x18], edx
call fcn.00429c94
lea ecx, [eax + eax]
add esp, 4
mov dword [esp + 0x10], ecx
jmp 0x40d180
mov edx, dword [0x471e68]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edx + 8]
mov edx, dword [esi]
mov dword [esp + 0x14], ecx
mov eax, dword [edx - 8]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x1c]
push ecx
push 0x46b8c0
push edx
call fcn.0043e845
add esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00444902
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push 5
mov ecx, ebp
call fcn.0040d4c0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
mov edx, edi
sub edx, esi
lea ecx, [edx + eax + 1]
push ecx
call fcn.004448ce
mov edx, eax
mov eax, dword [ebp + 0xc]
sub edi, esi
mov dword [esp + 0x1c], edx
add esp, 4
lea ecx, [edi + eax + 1]
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [ebp + 0x20]
mov ecx, ebx
sub ecx, esi
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 0x18]
mov edi, edx
sub edi, eax
mov eax, ecx
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x20]
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0xc]
mov ecx, eax
sub ecx, esi
add esi, ebx
sub ecx, ebx
add ecx, edi
mov edi, edx
mov edx, dword [esp + 0x10]
sub edi, eax
add edi, edx
mov edx, ecx
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40d26c
push eax
call fcn.004448f7
add esp, 4
mov dword [ebp + 0x20], 0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
sub eax, esi
lea edx, [eax + ecx + 1]
push edx
call fcn.004448ce
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov eax, ebx
mov dword [ebp + 0x20], edi
sub eax, esi
add esp, 4
lea ecx, [eax + ecx + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, dword [ebp + 0x20]
sub ecx, esi
mov esi, dword [ebp + 0xc]
add ecx, esi
mov esi, dword [esp + 0x18]
mov eax, ecx
sub ebx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
add ecx, ebx
mov dword [ebp + 0xc], ecx
mov eax, dword [0x471f78]
test eax, eax
je 0x40d31e
mov eax, dword [esp + 0x990]
test eax, eax
jne 0x40d31e
mov ecx, dword [esp + 0x1c]
push 0
push 1
push ecx
call fcn.00448f75
cmp eax, 2
jne 0x40d31e
mov eax, dword [ebp + 0x3c2c]
lea edx, [esp + 0x64]
push edx
push 3
push 0x46b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d37e
jmp 0x40d375
mov eax, dword [0x471f40]
test eax, eax
jne 0x40d332
mov eax, dword [esp + 0x990]
test eax, eax
je 0x40d354
push 0
mov ecx, ebp
call fcn.0040d930
neg eax
sbb eax, eax
and al, 0xfb
add eax, 5
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
mov edx, dword [ebp + 0x3c2c]
lea ecx, [esp + 0x64]
push ecx
push 3
push 0x46b
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d37e
push eax
call fcn.004448f7
add esp, 4
lea ecx, [esp + 0x58]
mov byte [esp + 0x988], 2
call fcn.004213c0
jmp 0x40d3ed
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x1c]
push eax
push 0x46b88c
push ecx
call fcn.0043e845
mov eax, dword [0x471f78]
add esp, 0xc
test eax, eax
je 0x40d3c9
mov eax, dword [esp + 0x990]
test eax, eax
jne 0x40d3c9
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
call fcn.00448f75
mov dword [esp + 0x17c], 6
mov ecx, dword [ebp + 0x3c2c]
lea eax, [esp + 0x64]
push eax
push 3
push 0x46b
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x17c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x988], 1
call fcn.00444b8d
mov eax, dword [esp + 0x24]
mov ecx, dword [0x471e70]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x40c8f0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40d45b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x988], 0
call fcn.00444b8d
lea ecx, [esp + 0x20]
mov dword [esp + 0x988], 0xffffffff
call fcn.00444b8d
mov eax, dword [esp + 0x48]
jmp 0x40d485
lea ecx, [esp + 0x1c]
mov byte [esp + 0x988], 0
call fcn.00444b8d
lea ecx, [esp + 0x20]
mov dword [esp + 0x988], 0xffffffff
call fcn.00444b8d
mov eax, 7
mov ecx, dword [esp + 0x980]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x97c
ret 4