Function at 0x479660
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x514
push ebx
push ebp
push esi
push edi
call fcn.00477370
mov ebx, dword [esp + 0x528]
xor edi, edi
cmp ebx, edi
jne 0x479689
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x514
ret
mov ecx, dword [0x4fd1d5]
mov ebp, 0x4fb4e8
cmp ecx, ebx
je 0x47969d
mov ebp, 0x4f90a0
cmp dword [ebp + 0x1ccd], edi
je 0x4796b7
push edi
push edi
push 0x4ddbb0
push ebx
call fcn.0047a650
add esp, 0x10
jmp 0x4796d7
mov ecx, dword [ebp + 0x1cd1]
add ecx, 0x7530
cmp eax, ecx
jle 0x4796d7
mov edx, dword [ebp + 0x1cbd]
push edx
push ebx
call fcn.0047a300
add esp, 8
call fcn.00477370
mov esi, eax
mov eax, dword [ebp + 0x1ca5]
cmp eax, 3
jne 0x47977b
mov ecx, dword [ebp + 0x1cbd]
lea eax, [ebp + 0x7f0]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [ebp + 0x1cbd]
push edi
push 0xffffffffffffffff
push edi
push edx
push ebx
call fcn.004795f0
add esp, 0x14
test eax, eax
jne 0x479723
mov dword [ebp + 0x1ca5], 4
sub esi, dword [0x4fd1ec]
cmp esi, 0x7530
jbe 0x47977b
push 0x1ad
push 0x279
call fcn.004411f0
add esp, 8
push eax
push 0xa0
call fcn.004411b0
add esp, 4
push eax
push str._s:__s
push 8
call fcn.00423db0
mov eax, dword [0x4fd1d5]
add esp, 0x10
cmp eax, ebx
push 1
jne 0x479773
call fcn.004793a0
jmp 0x479778
call fcn.00479490
add esp, 4
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1ce1]
cmp ecx, 2
jge 0x4797c6
mov ax, 2
lea edx, [esp + 0x10]
sub ax, cx
push edx
mov edx, dword [esp + 0x52c]
lea ecx, [ecx + ebp + 0x870]
movsx eax, ax
push eax
push ecx
push edx
call fcn.0046e2c0
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jne 0x4797c6
mov eax, dword [esp + 0x10]
cmp eax, edi
jle 0x4797c6
add dword [ebp + 0x1ce1], eax
mov ecx, dword [ebp + 0x1ce1]
cmp ecx, 2
jl 0x479813
mov ax, word [ebp + 0x870]
lea edx, [esp + 0x10]
sub ax, cx
push edx
mov edx, dword [esp + 0x52c]
add eax, 2
movsx eax, ax
lea ecx, [ecx + ebp + 0x870]
push eax
push ecx
push edx
call fcn.0046e2c0
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jne 0x479813
mov eax, dword [esp + 0x10]
cmp eax, edi
jle 0x479813
add dword [ebp + 0x1ce1], eax
mov eax, dword [ebp + 0x1ce1]
xor esi, esi
cmp eax, 2
jle 0x4798bc
movsx ecx, word [ebp + 0x870]
add eax, 0xfffffffe
cmp eax, ecx
jne 0x4798bc
movsx eax, byte [ebp + 0x872]
sub eax, 4
mov esi, 1
mov dword [ebp + 0x1ce1], edi
je 0x47989b
dec eax
je 0x479878
dec eax
jne 0x4798bc
mov edx, dword [esp + 0x528]
mov eax, dword [0x4fd1d5]
cmp eax, edx
push esi
jne 0x47986e
call fcn.004793a0
add esp, 4
jmp 0x4798bc
call fcn.00479490
add esp, 4
jmp 0x4798bc
mov eax, dword [ebp + 0x1cbd]
mov ecx, dword [esp + 0x528]
push eax
push ecx
call fcn.0047a2c0
add esp, 8
mov dword [ebp + 0x1ca5], 4
jmp 0x4798bc
mov edx, dword [esp + 0x528]
mov eax, dword [0x4fd1d5]
cmp eax, edx
jne 0x4798b7
push 1
call fcn.0047a4e0
add esp, 4
jmp 0x4798bc
call fcn.0047a5c0
mov eax, dword [ebp + 0x1ca5]
cmp eax, 4
jl case.default.0x4798ec
cmp eax, 5
jg 0x479afc
test esi, esi
je case.default.0x4798ec
movsx eax, byte [ebp + 0x872]
cmp eax, 3
ja case.default.0x4798ec
jmp dword [eax*4 + 0x47a2a4]
mov eax, dword [ebp + 0x1ca9]
xor edi, edi
cmp eax, edi
je 0x47977f
mov eax, dword [ebp + 0x874]
push edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [ebp + 0x1cd9]
push eax
mov eax, dword [ebp + 0x1cc9]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x1ca9]
lea eax, [ebp + 0x87a]
movsx edx, word [ebp + 0x878]
push ecx
push 1
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x479973
push 0x281
call fcn.004411b0
mov ecx, dword [ebp + 0x1cbd]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.0047a5c0
call fcn.00477370
mov edx, dword [ebp + 0x1ca1]
add edx, 0x3e8
cmp eax, edx
jb 0x4799dc
mov edx, dword [ebp + 0x1cd5]
inc edx
mov ecx, edx
mov dword [ebp + 0x1cd5], edx
cmp ecx, 0xa
jl 0x4799a9
mov dword [ebp + 0x1cd5], edi
mov dword [ebp], 1
cmp dword [ebp], edi
je 0x4799c9
mov ecx, dword [ebp + 0x1cd5]
mov edx, dword [ebp + ecx*4 + 0x1c71]
mov ecx, dword [ebp + 0x1c99]
sub ecx, edx
mov dword [ebp + 0x1c99], ecx
mov ecx, dword [ebp + 0x1cd5]
mov dword [ebp + ecx*4 + 0x1c71], edi
mov dword [ebp + 0x1ca1], eax
movsx edx, word [ebp + 0x878]
mov esi, dword [ebp + 0x1c99]
mov ecx, dword [ebp + 0x1cd5]
add esi, edx
mov edx, dword [ebp + 0x1c9d]
mov dword [ebp + 0x1c99], esi
movsx eax, word [ebp + 0x878]
add edx, eax
lea eax, [ebp + ecx*4 + 0x1c71]
mov dword [ebp + 0x1c9d], edx
movsx edx, word [ebp + 0x878]
mov ecx, dword [eax]
add ecx, edx
mov dword [eax], ecx
mov eax, dword [ebp + 0x1ca9]
cmp eax, edi
je 0x47977f
cmp dword [ebp], edi
je 0x479a3b
fld qword [0x4bf750]
jmp 0x479a47
fild dword [ebp + 0x1cd5]
fadd qword [0x4bf740]
mov eax, dword [ebp + 0x1c99]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1ce5]
fild qword [esp + 0x14]
cmp eax, 1
fdiv st(1)
fmul qword [0x4bf9d0]
fstp qword [esp + 0x1c]
fstp st(0)
jle 0x479a89
mov ecx, dword [ebp + 0x1ce9]
push eax
push ecx
push 0x29a
call fcn.004411f0
add esp, 0xc
jmp 0x479a8e
mov eax, 0x4ddbb0
mov edx, dword [ebp + 0x1cdd]
push eax
mov eax, dword [ebp + 0x1c9d]
push edx
lea ecx, [ebp + 0x3f0]
push eax
push ecx
push 0x2a3
call fcn.004411b0
add esp, 4
push eax
push 0x2a4
call fcn.004411f0
mov edx, dword [ebp + 0x1cbd]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
add esp, 0x18
push eax
push edx
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 0x76
call fcn.004411f0
mov edx, dword [ebp + 0x1cad]
add esp, 0xc
push eax
push edx
call esi
mov dword [ebp + 0x1ca5], 5
jmp 0x47977f
cmp eax, 6
jne case.default.0x4798ec
test ebx, ebx
je 0x479b13
push 0
call fcn.004793a0
add esp, 4
mov eax, dword [ebp + 0x1ca9]
test eax, eax
jne 0x479b37
pop edi
mov dword [ebp + 0x1ca5], 4
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x514
ret
call fcn.00477370
mov dword [esp + 0x14], eax
call fcn.00477370
mov edx, dword [esp + 0x14]
mov edi, eax
sub eax, edx
cmp eax, 0x32
ja case.default.0x4798ec
mov ecx, dword [0x4fb198]
mov edx, dword [ebp + 0x1ca9]
xor ebx, ebx
shl ecx, 0xa
push ebx
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [ebp + 0x1ca9]
lea ecx, [esp + 0x12c]
push eax
push 0x400
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
add esp, 0x1c
cmp esi, 1
jl 0x479d5c
mov edx, dword [ebp + 0x1ca1]
add edx, 0x3e8
cmp edi, edx
jb 0x479bfe
mov ecx, dword [ebp + 0x1cd5]
inc ecx
mov eax, ecx
mov dword [ebp + 0x1cd5], ecx
cmp eax, 0xa
jl 0x479bcb
mov dword [ebp + 0x1cd5], ebx
mov dword [ebp], 1
cmp dword [ebp], ebx
je 0x479beb
mov eax, dword [ebp + 0x1cd5]
mov ecx, dword [ebp + eax*4 + 0x1c71]
mov eax, dword [ebp + 0x1c99]
sub eax, ecx
mov dword [ebp + 0x1c99], eax
mov edx, dword [ebp + 0x1cd5]
mov dword [ebp + edx*4 + 0x1c71], ebx
mov dword [ebp + 0x1ca1], edi
mov ecx, dword [0x4fb198]
mov edx, dword [esp + 0x528]
lea eax, [esp + 0x120]
push esi
push eax
push ecx
push edx
call fcn.0047a470
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x479c5c
mov eax, dword [ebp + 0x1c99]
mov ecx, dword [0x4fb198]
mov edx, dword [ebp + 0x1c9d]
add eax, esi
mov dword [ebp + 0x1c99], eax
mov eax, dword [ebp + 0x1cd5]
inc ecx
add edx, esi
lea eax, [ebp + eax*4 + 0x1c71]
mov dword [0x4fb198], ecx
mov dword [ebp + 0x1c9d], edx
add dword [eax], esi
cmp dword [ebp], ebx
je 0x479c69
fld qword [0x4bf750]
jmp 0x479c75
fild dword [ebp + 0x1cd5]
fadd qword [0x4bf740]
mov ecx, dword [ebp + 0x1c99]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 0x1ce5]
fild qword [esp + 0x24]
cmp eax, 1
fdiv st(1)
fmul qword [0x4bf9d0]
fstp qword [esp + 0x1c]
fstp st(0)
jle 0x479cb7
mov edx, dword [ebp + 0x1ce9]
push eax
push edx
push 0x29a
call fcn.004411f0
add esp, 0xc
jmp 0x479cbc
mov eax, 0x4ddbb0
mov ecx, dword [ebp + 0x1c9d]
push eax
mov eax, dword [ebp + 0x1cdd]
lea edx, [ebp + 0x3f0]
push eax
push ecx
push edx
push 0x2a2
call fcn.004411b0
add esp, 4
push eax
push 0x2a4
call fcn.004411f0
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
add esp, 0x18
push eax
mov eax, dword [ebp + 0x1cbd]
push eax
call esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0x76
call fcn.004411f0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1cad]
push eax
call esi
mov eax, dword [0x4fb198]
mov ecx, dword [ebp + 0x1cc9]
push ebx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [ebp + 0x1cd9]
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, ebx
je 0x479b40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x514
ret
push ebx
call fcn.0047a4e0
mov edx, dword [ebp + 0x1cbd]
mov eax, dword [esp + 0x52c]
push edx
push eax
call fcn.0047a320
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x514
ret
mov edx, dword [ebp + 0x1cbd]
lea ecx, [ebp + 0x7f0]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x4fb414]
mov dword [ebp + 0x1ca5], 4
test edx, edx
jl case.default.0x4798ec
mov al, byte [ebp + edx + 0x1870]
lea esi, [ebp + 0x1870]
test al, al
jne 0x479df1
mov edx, dword [0x4fd1cd]
mov ecx, dword [0x4fd1a9]
xor eax, eax
mov dword [0x4fb414], 0xffffffff
test edx, edx
setg al
push eax
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [0x4fb414]
test edx, edx
jl case.default.0x4798ec
lea ebx, [esi + edx]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x1ca9]
not ecx
dec ecx
test eax, eax
lea edx, [edx + ecx + 1]
mov dword [0x4fb414], edx
je 0x479e26
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4c5ec0
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str._MBVCXZ_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x5c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0x3f0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
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]
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp + 0x1ca9], eax
test eax, eax
je case.default.0x4798ec
mov ecx, dword [ebp + 0x1ce9]
lea edx, [esp + 0x34]
inc ecx
push edx
mov dword [ebp + 0x1ce9], ecx
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__fstat]
add esp, 8
test eax, eax
jne 0x479f29
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x1cdd], eax
dec eax
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
inc eax
xor esi, esi
mov dword [ebp + 0x1cd9], eax
jmp 0x479f31
xor esi, esi
mov dword [ebp + 0x1cd9], esi
mov ecx, dword [ebp + 0x1ca9]
mov dword [0x4fb198], esi
push ecx
mov dword [ebp + 0x1ca5], 6
call dword [sym.imp.MSVCRT.dll_rewind]
push 0x89
call fcn.004411b0
mov edx, dword [ebp + 0x1cb1]
add esp, 8
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edx, dword [ebp + 0x1cd9]
push eax
mov eax, dword [ebp + 0x1ce5]
push ecx
mov ecx, dword [ebp + 0x1ce9]
push edx
mov edx, dword [ebp + 0x1cbd]
push eax
mov eax, dword [esp + 0x538]
push ecx
push ebx
push edx
push eax
call fcn.0047a390
add esp, 0x20
jmp 0x47a132
mov dword [ebp + 0x1ca5], 5
mov ecx, dword [ebp + 0x87c]
mov dword [ebp + 0x1cd9], ecx
mov edx, dword [ebp + 0x874]
mov dword [ebp + 0x1ce9], edx
mov eax, dword [ebp + 0x878]
mov dword [ebp + 0x1ce5], eax
mov ecx, dword [ebp + 0x884]
mov edx, dword [ebp + 0x880]
mov dword [0x4f8c78], ecx
lea edi, [ebp + 0x88c]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x1cdd], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [ebp + 0x3f0]
mov eax, ecx
mov esi, edi
mov 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 + 0x1ca9]
test eax, eax
je 0x47a028
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
or ecx, 0xffffffff
mov edi, 0x4fad94
xor eax, eax
push 0x89
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4fb41c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._MBVCXZ_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x4fb41c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x4fb41c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004411b0
add esp, 4
push eax
mov eax, dword [ebp + 0x1cb1]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x4d8864
push 0x4fb41c
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp + 0x1ca9], eax
test eax, eax
jne 0x47a130
call fcn.0047a5c0
mov ecx, dword [ebp + 0x1cbd]
mov edx, dword [ebp + 0x1ced]
push ecx
push edx
call fcn.004795b0
push 0x281
lea ebx, [ebp + 0x7f0]
call fcn.004411b0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov 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 ecx, dword [ebp + 0x1cbd]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
xor esi, esi
mov dword [ebp], esi
mov dword [ebp + 0x1c71], esi
mov dword [ebp + 0x1c99], esi
mov dword [ebp + 0x1c9d], esi
call fcn.00477370
mov dword [ebp + 0x1cd5], esi
mov dword [ebp + 0x1ccd], esi
pop edi
mov dword [ebp + 0x1ca1], eax
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x514
ret
mov edx, dword [ebp + 0x1cbd]
mov eax, dword [esp + 0x528]
push edx
push eax
call fcn.0047a2c0
push 0x18
mov dword [ebp + 0x1ca5], 4
call fcn.004411b0
mov ecx, dword [ebp + 0x1cb1]
add esp, 0xc
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp + 0x1ca9]
mov dword [0x4fb198], 0
test eax, eax
je 0x47a288
lea edx, [ebp + 0x3f0]
lea ebx, [ebp + 0x7f0]
push edx
push 0x2ae
call fcn.004411f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov 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 ecx, dword [ebp + 0x1cbd]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x4f8c78]
push 0
mov dword [esp + 0x34], edx
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, dword [ebp + 0x1ca9]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x1cdd]
mov edx, dword [ecx + 0x10]
push eax
push edx
call dword [sym.imp.MSVCRT.dll__chsize]
mov eax, dword [ebp + 0x1ca9]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
lea ecx, [esp + 0x3c]
push ecx
push 0x4fb41c
call dword [sym.imp.MSVCRT.dll__utime]
mov edx, dword [ebp + 0x1ce9]
mov eax, dword [ebp + 0x1ce5]
add esp, 0x18
cmp edx, eax
jl 0x47a288
mov eax, dword [ebp + 0x1cad]
push 0x4ddbb0
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp + 0x1cc9]
push 0
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp + 0x1ca9], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x514
ret