Function at 0x422410
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5a8]
sub esp, 0x5a8
push 0xffffffffffffffff
push 0x4b6248
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x50a360]
xor eax, ebp
mov dword [ebp + 0x5a4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x50b960], 0
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, ecx
mov dword [ebp - 0x18], ebx
je 0x422485
lea edi, [ebx + 0x24dc]
push edi
call esi
mov eax, dword [ebp + 0x5b4]
mov ecx, dword [ebp + 0x5b0]
push eax
push ecx
mov ecx, ebx
call fcn.00420600
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x50b98c], 0
je 0x4224b3
lea edi, [ebx + 0x24dc]
push edi
call esi
mov edx, dword [ebp + 0x5b4]
mov eax, dword [ebp + 0x5b0]
push edx
push eax
mov ecx, ebx
call fcn.00416eb0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx + 0x23a8], 0
jne 0x4224c9
cmp dword [0x50b8b0], 0
je 0x422e94
lea eax, [ebx + 0x24ac]
push eax
mov dword [ebp - 0x30], eax
call esi
push 0x40
lea ecx, [ebp + 0x51d]
push 0
push ecx
mov dword [ebp - 0x2c], 0
mov byte [ebp + 0x51c], 0
call fcn.00494750
push 0x40
lea edx, [ebp + 0x4d9]
push 0
push edx
mov byte [ebp + 0x4d8], 0
call fcn.00494750
push 0x40
lea eax, [ebp + 0x561]
push 0
push eax
mov byte [ebp + 0x560], 0
call fcn.00494750
push 0x103
lea ecx, [ebp + 0xc9]
push 0
push ecx
mov byte [ebp + 0xc8], 0
call fcn.00494750
mov eax, dword [ebp + 0x5b0]
add esp, 0x30
lea edx, [ebp - 0x2c]
push edx
push eax
lea ecx, [ebx + 0x118]
call fcn.00416940
mov edi, dword [ebp - 0x2c]
test eax, eax
je 0x4225c2
test edi, edi
je 0x4225c2
lea eax, [edi + 0x1c]
lea edx, [ebp + 0x51c]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x422570
lea eax, [edi + 0x5d]
lea edx, [ebp + 0x4d8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x422585
lea eax, [edi + 0x30b4]
lea edx, [ebp + 0xc8]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4225a0
lea eax, [edi + 0x32dc]
lea edx, [ebp + 0x560]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4225b8
cmp dword [ebx + 0x23a8], 0
je 0x422d22
push 0x207
lea ecx, [ebp + 0x1cd]
push 0
push ecx
mov byte [ebp + 0x1cc], 0
call fcn.00494750
mov eax, dword [ebx + 0x2000]
add esp, 0xc
test eax, eax
jne 0x42284e
push eax
call fcn.00494170
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2004]
add esp, 4
mov dword [ebp - 0x10], edx
cmp eax, 1
jne 0x422732
cmp dword [ebp + 0x5b4], 0
mov dword [ebp - 0x28], str.PASS
jne 0x42262f
mov dword [ebp - 0x28], str.FAIL
lea eax, [ebp + 0x51c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422638
sub eax, edx
jne 0x42264c
mov dword [ebp - 0x24], 0x4c662c
jmp 0x422655
lea edx, [ebp + 0x51c]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00494a49
add esp, 8
test eax, eax
jne 0x422677
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x1c], edx
jmp 0x42267e
mov dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.00494a49
add esp, 8
test eax, eax
jne 0x422697
mov ebx, dword [ebp - 0x74]
jmp 0x42269a
or ebx, 0xffffffff
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.00494a49
add esp, 8
test eax, eax
jne 0x4226b3
mov edi, dword [ebp - 0x4c]
jmp 0x4226b6
or edi, 0xffffffff
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xe4]
push edx
call fcn.00494a49
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xc0]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push ecx
call fcn.00494a49
add esp, 0x10
test eax, eax
jne 0x4226f4
mov eax, dword [ebp - 0xb0]
inc eax
jmp 0x4226f6
xor eax, eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
push edx
mov edx, dword [ebp + 0x5b0]
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
push ecx
push ebx
push edi
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e10
push eax
lea edx, [ebp + 0x1cc]
push str._4d__02d__02d__02d:_02d:_02d_COM_d__tSN:__24s_t_s_r_n
push edx
call fcn.004945b6
mov ebx, dword [ebp - 0x18]
add esp, 0x2c
jmp 0x422cd6
mov esi, str.PASS
cmp eax, 2
jne 0x4227c5
cmp dword [ebp + 0x5b4], 0
jne 0x42274e
mov esi, str.FAIL
lea eax, [ebp + 0x560]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422757
sub eax, edx
mov eax, 0x4c662c
je 0x42276d
lea eax, [ebp + 0x560]
push esi
push eax
mov eax, dword [ebp + 0x5b0]
push eax
lea ecx, [ebp - 0x14]
call fcn.00414ef0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414ec0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e90
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e70
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e40
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e10
push eax
lea ecx, [ebp + 0x1cc]
push str._4d__02d__02d__02d:_02d:_02d_COM_d__tCHIPUID:__16s_t_s_r_n
push ecx
call fcn.004945b6
add esp, 0x2c
jmp 0x422cd6
cmp dword [ebp + 0x5b4], 0
jne 0x4227d3
mov esi, str.FAIL
lea eax, [ebp + 0x4d8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4227e0
sub eax, edx
mov eax, 0x4c662c
je 0x4227f6
lea eax, [ebp + 0x4d8]
mov edx, dword [ebp + 0x5b0]
push esi
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.00414ef0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414ec0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e90
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e70
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e40
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e10
push eax
lea eax, [ebp + 0x1cc]
push str._4d__02d__02d__02d:_02d:_02d_COM_d__tIMEI:__20s_t_s_r_n
push eax
call fcn.004945b6
add esp, 0x2c
jmp 0x422cd6
cmp eax, 1
jne 0x422be7
xor ecx, ecx
push 0x62
push ecx
lea edx, [ebp + 2]
push edx
mov word [ebp], cx
call fcn.00494750
push 0x64
lea eax, [ebp + 0x64]
push 0
push eax
call fcn.00494750
push 0
call fcn.00494170
add esp, 0x1c
lea ecx, [ebp]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 0x5b0]
push ecx
push edx
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.0047db9e
mov ecx, eax
call fcn.0040d3c0
push 0x103
lea eax, [ebp + 0x3d5]
push 0
push eax
mov byte [ebp + 0x3d4], 0
call fcn.00494750
mov eax, dword [ebx + 0x2004]
add esp, 0xc
cmp eax, 1
jne 0x4228f5
lea eax, [ebp + 0x51c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4228d0
sub eax, edx
mov eax, 0x4c662c
je 0x4228e6
lea eax, [ebp + 0x51c]
push eax
push str.SN:_s
lea ecx, [ebp + 0x3d4]
push ecx
jmp 0x422954
cmp eax, 2
jne 0x422928
lea eax, [ebp + 0x560]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422903
sub eax, edx
mov eax, 0x4c662c
je 0x422919
lea eax, [ebp + 0x560]
push eax
push str.CHIPUID:_s
lea edx, [ebp + 0x3d4]
push edx
jmp 0x422954
lea eax, [ebp + 0x4d8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422931
sub eax, edx
mov eax, 0x4c662c
je 0x422947
lea eax, [ebp + 0x4d8]
push eax
push str.IMEI:_s
lea eax, [ebp + 0x3d4]
push eax
call fcn.004945b6
add esp, 0xc
cmp dword [ebp + 0x5b4], 0
je 0x422ae9
lea ecx, [ebp + 0x64]
push ecx
call fcn.00495ca8
mov edx, dword [edi + 0x3358]
add esp, 4
push 0
push 0x100000
mov esi, eax
mov eax, dword [edi + 0x3354]
push edx
push eax
mov dword [ebp - 0x18], esi
call fcn.00496190
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
fild qword [ebp - 0x20]
fst qword [ebp - 0x20]
test esi, esi
je 0x422a4f
fidiv dword [ebp - 0x18]
lea ecx, [ebp + 0x64]
push ecx
fstp dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4229c4
xor esi, esi
jmp 0x4229df
lea esi, [eax + eax]
mov eax, esi
call fcn.004947d0
mov eax, esp
push 3
push esi
lea edx, [ebp + 0x64]
push edx
push eax
call fcn.00401110
mov esi, eax
fld qword [ebp - 0x20]
sub esp, 8
lea ecx, [ebp - 0x14]
fstp qword [esp]
call fcn.00414ef0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414ec0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e90
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e70
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e40
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e10
fld dword [ebp - 0x18]
mov ecx, dword [ebp + 0x5b0]
push eax
sub esp, 8
fstp qword [esp]
lea eax, [ebp + 0x3d4]
push eax
push esi
push ecx
lea edx, [ebp + 0x1cc]
push str.com_d_NA_NA__s__s__.2fM_s_pass__4d__02d__02d__02d:_02d:_02d__.0lfMB_n
push edx
call fcn.004945b6
add esp, 0x3c
jmp 0x422cd6
lea eax, [ebp + 0x64]
fstp st(0)
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x422a67
xor esi, esi
jmp 0x422a82
lea esi, [eax + eax]
mov eax, esi
call fcn.004947d0
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x64]
push ecx
push eax
call fcn.00401110
mov esi, eax
fld qword [ebp - 0x20]
sub esp, 8
lea ecx, [ebp - 0x14]
fstp qword [esp]
call fcn.00414ef0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414ec0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e90
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e70
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e40
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e10
push eax
mov eax, dword [ebp + 0x5b0]
lea edx, [ebp + 0x3d4]
push edx
push esi
push eax
lea ecx, [ebp + 0x1cc]
push str.com_d_NA_NA__s__s_NA_pass__4d__02d__02d__02d:_02d:_02d__.0lfMB_n
push ecx
call fcn.004945b6
add esp, 0x34
jmp 0x422cd6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp + 0x64]
push edx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x422b06
mov dword [ebp - 0x1c], 0
jmp 0x422b22
lea esi, [eax + eax]
mov eax, esi
call fcn.004947d0
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x64]
push ecx
push eax
call fcn.00401110
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x2c]
add edi, 0x9e
je 0x422b54
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x422b3c
xor edi, edi
jmp 0x422b54
lea esi, [eax + eax]
mov eax, esi
call fcn.004947d0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00401110
mov edi, eax
lea edx, [ebp]
push edx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x422b66
xor esi, esi
jmp 0x422b81
lea esi, [eax + eax]
mov eax, esi
call fcn.004947d0
mov eax, esp
push 3
push esi
lea ecx, [ebp]
push ecx
push eax
call fcn.00401110
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.00414ef0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414ec0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e90
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e70
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e40
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e10
mov ecx, dword [ebp + 0x5b0]
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp + 0x3d4]
push edx
push eax
push edi
push esi
push ecx
lea edx, [ebp + 0x1cc]
push str.com_d__s___s___s__s_NA_fail__4d__02d__02d__02d:_02d:_02d_NA_n
push edx
call fcn.004945b6
mov ebx, dword [ebp - 0x18]
add esp, 0x34
jmp 0x422cd6
cmp eax, 2
jne 0x422cd6
push 0
push 0
add edi, 0x30c8
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.004598e0
mov eax, dword [ebp - 0x28]
add esp, 0x10
cmp dword [ebp + 0x5b4], 0
mov edi, eax
je 0x422c85
test eax, eax
jne 0x422c32
push eax
lea ecx, [ebp + 0xc8]
push ecx
push str._s_t_t_s_t_tpass_r_n
lea edx, [ebp + 0x1cc]
push edx
jmp 0x422cc6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x422c59
xor eax, eax
push eax
lea ecx, [ebp + 0xc8]
push ecx
push str._s_t_t_s_t_tpass_r_n
lea edx, [ebp + 0x1cc]
push edx
jmp 0x422cc6
lea esi, [eax + eax]
mov eax, esi
call fcn.004947d0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00401110
push eax
lea ecx, [ebp + 0xc8]
push ecx
push str._s_t_t_s_t_tpass_r_n
lea edx, [ebp + 0x1cc]
push edx
jmp 0x422cc6
test eax, eax
je 0x422cb2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x422c9c
xor eax, eax
jmp 0x422cb2
lea esi, [eax + eax]
mov eax, esi
call fcn.004947d0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00401110
push eax
lea eax, [ebp + 0xc8]
push eax
push str._s_t_t_s_t_tfail_r_n
lea ecx, [ebp + 0x1cc]
push ecx
call fcn.004945b6
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00401480
lea eax, [ebp + 0x1cc]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422ce0
sub eax, edx
je 0x422d22
lea eax, [ebp + 0x1cc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422cf4
sub eax, edx
mov edx, dword [ebx + 0x23a8]
push edx
push 1
push eax
lea eax, [ebp + 0x1cc]
push eax
call fcn.004973f6
mov ecx, dword [ebx + 0x23a8]
push ecx
call fcn.00497238
add esp, 0x14
cmp dword [0x50b8b0], 0
je 0x422e8a
mov eax, dword [0x50b8b4]
add eax, 0xfffffff0
push eax
call fcn.00401560
add eax, 0x10
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [0x50b8b8], 0
mov dword [ebp - 4], 0
je 0x422dcc
call fcn.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x422d70
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x5b0]
push ecx
lea edx, [ebp - 0x18]
push str._com_d.txt
push edx
mov byte [ebp - 4], 1
call fcn.00401cb0
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
push str..txt
lea ecx, [ebp - 0x1c]
call fcn.0040ad90
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422dcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x1c]
push 0x4c6458
push ebx
call fcn.00496ca9
add esp, 8
push str.success
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00402560
cmp dword [ebp + 0x5b4], 0
mov byte [ebp - 4], 2
jne 0x422e31
cmp dword [ebp - 0x2c], 0
je 0x422e24
mov edx, dword [ebp - 0x2c]
add edx, 0x9e
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422e10
sub eax, edi
sar eax, 1
je 0x422e24
push edx
jmp 0x422e29
push str.unknown_errors_occur_in_downloading
lea ecx, [ebp - 0x24]
call fcn.00402190
mov ecx, dword [ebp - 0x24]
push ecx
push esi
call fcn.0049701a
push esi
call fcn.00496f9e
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422e67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422e8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esp, [ebp - 0xf4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5a4]
xor ecx, ebp
call fcn.004945a7
add ebp, 0x5a8
mov esp, ebp
pop ebp
ret 8