Function at 0x418130
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x444646
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xeb4
mov eax, dword [esp + 0xec4]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [esp + 0x18], esi
mov dword [esi + 0x24], ebx
je 0x4181ba
push str.verCheck
push str.UPDATE
call fcn.0040b850
cmp eax, ebx
jl 0x4181ba
cmp eax, 0x18
jge 0x4181ba
push ebx
lea eax, [esp + 0x5a0]
push 0x104
push eax
call fcn.00413c00
add esp, 0xc
test eax, eax
je 0x41865d
push 1
lea ecx, [esp + 0x5a0]
push 0x104
push ecx
call fcn.00413c00
add esp, 0xc
test eax, eax
je 0x41865d
lea edx, [esp + 0x394]
push edx
push ebx
push str.storm_ctrl.ini
call fcn.0040b6a0
push 0x454a80
call fcn.004118e0
mov ecx, dword [esi + 0x20]
add esp, 4
lea eax, [esp + 0x394]
push eax
push str.http:__download.baofeng.com_stormII_storm_ctrl.ini
call fcn.0040a590
mov edi, eax
cmp edi, ebx
jge 0x418209
push 0x454a3c
call fcn.004118e0
add esp, 4
mov eax, edi
jmp 0x418676
lea ecx, [esp + 0x60]
call fcn.00428740
lea ecx, [esp + 0x178]
mov dword [esp + 0xecc], ebx
call fcn.00428740
push ebx
lea ecx, [esp + 0x398]
push ebx
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0xed8], 1
call fcn.004287e0
push ebx
push ebx
call fcn.0040b770
push eax
lea ecx, [esp + 0x184]
call fcn.004287e0
push ebx
push str.force
push str.SERVER
lea ecx, [esp + 0x6c]
call fcn.004288a0
mov dword [esi + 0x24], eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x28
push edx
push str.version
push str.SERVER
lea ecx, [esp + 0x70]
stosb byte es:[edi], al
call fcn.00428870
lea eax, [esp + 0x38]
lea ecx, [esp + 0x178]
push eax
push str.version
push str.UPDATE
call fcn.00428850
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x6a1]
mov byte [esp + 0x6a0], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x6a0]
push 0x824
stosw word es:[edi], ax
push ecx
push str.info
push str.SERVER
lea ecx, [esp + 0x70]
stosb byte es:[edi], al
call fcn.00428870
lea edx, [esp + 0x6a0]
lea ecx, [esp + 0x178]
push edx
push str.info
push str.UPDATE
call fcn.00428850
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
xor esi, esi
xor eax, eax
push esi
mov dword [esp + 0x21], eax
push 0x454a18
mov dword [esp + 0x29], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x2d], eax
push 0x14
mov dword [esp + 0x35], eax
push ecx
mov word [esp + 0x3d], ax
mov byte [esp + 0x2c], bl
mov byte [esp + 0x3f], al
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2a1]
mov byte [esp + 0x2a0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x10
lea edx, [esp + 0x290]
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x20]
push edx
push eax
push str.SKIN
lea ecx, [esp + 0x70]
call fcn.00428870
test eax, eax
jbe 0x4183ab
lea ecx, [esp + 0x290]
lea edx, [esp + 0x1c]
push ecx
push edx
push str.SKIN
lea ecx, [esp + 0x184]
call fcn.00428850
inc esi
cmp esi, 0x64
jl 0x418314
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x24], ebx
je 0x4183cc
push str.alert
push str.UPDATE
lea ecx, [esp + 0x180]
call fcn.00428a00
jmp 0x4183f7
push ebx
push str.alert
push str.SERVER
lea ecx, [esp + 0x6c]
call fcn.004288a0
push eax
push str.alert
push str.UPDATE
lea ecx, [esp + 0x184]
call fcn.004288c0
lea ecx, [esp + 0x6a0]
push 0x824
push ecx
push 0x454a04
push str.EXPERT
lea ecx, [esp + 0x70]
call fcn.00428870
lea edx, [esp + 0x6a0]
lea ecx, [esp + 0x178]
push edx
push 0x454a04
push str.EXPERT
call fcn.00428850
lea eax, [esp + 0x6a0]
push 0x824
push eax
push 0x4549f8
push str.EXPERT
lea ecx, [esp + 0x70]
call fcn.00428870
lea ecx, [esp + 0x6a0]
push ecx
push 0x4549f8
push str.EXPERT
lea ecx, [esp + 0x184]
call fcn.00428850
lea edx, [esp + 0x6a0]
push 0x104
push edx
push 0x4549f8
push str.SERVER
lea ecx, [esp + 0x70]
mov byte [esp + 0x6b0], bl
call fcn.00428870
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x394]
push eax
call ebp
lea ecx, [esp + 0x38]
push ecx
call fcn.00427850
mov esi, edx
lea edx, [esp + 0x10]
push edx
push 1
mov edi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00417ff0
test eax, eax
je 0x41851f
mov eax, dword [esp + 0x14]
cmp eax, esi
jl 0x41851f
jg 0x4184e2
mov ecx, dword [esp + 0x10]
cmp ecx, edi
jb 0x41851f
push str.verCheck
push str.UPDATE
call fcn.0040b7a0
lea ecx, [esp + 0x178]
mov byte [esp + 0xecc], bl
call fcn.004287d0
lea ecx, [esp + 0x60]
mov dword [esp + 0xecc], 0xffffffff
call fcn.004287d0
xor eax, eax
jmp 0x418676
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push edx
push ebx
mov dword [esp + 0x1c], ebx
call fcn.00417ff0
test eax, eax
je 0x418588
mov eax, dword [esp + 0x14]
cmp eax, esi
jl 0x418588
jg 0x418548
mov ecx, dword [esp + 0x10]
cmp ecx, edi
jb 0x418588
push str.verCheck
push str.UPDATE
call fcn.0040b7a0
lea ecx, [esp + 0x178]
mov byte [esp + 0xecc], bl
call fcn.004287d0
lea ecx, [esp + 0x60]
mov dword [esp + 0xecc], 0xffffffff
call fcn.004287d0
mov eax, 1
jmp 0x418676
lea edx, [esp + 0x498]
lea eax, [esp + 0x38]
push edx
push eax
push str.server.ecs
call fcn.0040b6a0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x498]
lea edx, [esp + 0x6a0]
push ecx
mov ecx, dword [eax + 0x20]
push edx
call fcn.0040a590
mov esi, eax
cmp esi, ebx
jge 0x4185ef
lea ecx, [esp + 0x178]
mov byte [esp + 0xecc], bl
call fcn.004287d0
lea ecx, [esp + 0x60]
mov dword [esp + 0xecc], 0xffffffff
call fcn.004287d0
mov eax, esi
jmp 0x418676
push ebx
lea ecx, [esp + 0x6a4]
push 0x104
push ecx
call fcn.00413c00
add esp, 0xc
lea edx, [esp + 0x6a0]
lea eax, [esp + 0x498]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x41862f
lea ecx, [esp + 0x498]
push ecx
call ebp
jmp 0x418548
lea ecx, [esp + 0x178]
mov byte [esp + 0xecc], bl
call fcn.004287d0
lea ecx, [esp + 0x60]
mov dword [esp + 0xecc], 0xffffffff
call fcn.004287d0
mov eax, 0x80004005
jmp 0x418676
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebx
push edx
push ebx
mov dword [esp + 0x3c], ebx
call fcn.00417ff0
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0xec4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xec0
ret 4