Function at 0x40520c
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x54
push 0x44
mov eax, 0x46075b
call fcn.00446960
mov esi, ecx
lea ecx, [ebp - 0x2c]
call fcn.00421743
xor ebx, ebx
push 0x47ebb4
lea ecx, [ebp + 0x50]
mov dword [ebp - 4], ebx
call fcn.0040349b
mov eax, dword [ebp + 0x50]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], ebx
jne 0x40526f
lea ecx, [eax - 0x10]
call fcn.004010f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00421873
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x58
leave
ret 4
push 1
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x50]
call fcn.004038d8
mov edi, 0x4663f4
push edi
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040324d
mov ecx, dword [ebp + 0x40]
test eax, eax
setne byte [ebp + 0x4b]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010f6
cmp byte [ebp + 0x4b], bl
je 0x4052b1
push edi
lea ecx, [ebp + 0x50]
call fcn.00403b47
push str.UPDATE_ABCHINAIS
lea ecx, [ebp + 0x50]
call fcn.00403b47
push str..CFG
lea ecx, [ebp + 0x50]
call fcn.00403b47
mov edi, dword [ebp + 0x50]
push 0x46642c
lea eax, [ebp + 0x4c]
push edi
push eax
mov dword [ebp + 0x4c], ebx
call fcn.00448e74
add esp, 0xc
test eax, eax
je 0x4052ef
lea ecx, [edi - 0x10]
jmp 0x405247
cmp dword [ebp + 0x4c], ebx
je 0x4052e7
lea ecx, [ebp - 0x2c]
call fcn.0042174f
push str.UPDATE_CONFIG
lea ecx, [ebp - 0x50]
call fcn.00403c42
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004217f1
push ebx
push 1
lea ecx, [ebp - 0x50]
mov dword [ebp + 0x54], eax
mov byte [ebp - 4], 1
call fcn.004014e8
cmp dword [ebp + 0x54], ebx
jne 0x40533b
push dword [ebp + 0x4c]
call fcn.00448a77
pop ecx
jmp 0x4052e7
lea edi, [esi + 0xbc]
mov eax, dword [edi]
push dword [eax - 0xc]
mov ecx, edi
call fcn.004014be
push eax
lea ecx, [ebp + 0x1c]
call fcn.00403c42
push str.Adr1
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.00403c42
mov ecx, dword [ebp + 0x54]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 5
call fcn.00421568
push ebx
push 1
lea ecx, [ebp]
call fcn.004014e8
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.004014e8
lea ecx, [esi + 0xc0]
mov eax, dword [ecx]
push dword [eax - 0xc]
call fcn.004014be
push eax
lea ecx, [ebp]
call fcn.00403c42
push str.Adr2
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 6
call fcn.00403c42
mov ecx, dword [ebp + 0x54]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 7
call fcn.00421568
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.004014e8
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004014e8
lea ecx, [esi + 0xc4]
mov eax, dword [ecx]
push dword [eax - 0xc]
call fcn.004014be
push eax
lea ecx, [ebp]
call fcn.00403c42
push str.Adr3
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 8
call fcn.00403c42
mov ecx, dword [ebp + 0x54]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 9
call fcn.00421568
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.004014e8
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004014e8
push 0xffffffffffffffff
mov ecx, edi
call fcn.00403306
or edi, 0xffffffff
push edi
lea ecx, [esi + 0xc0]
call fcn.00403306
push edi
lea ecx, [esi + 0xc4]
call fcn.00403306
cmp dword [ebp + 0x60], ebx
je 0x40559b
push 0x465c28
lea ecx, [ebp + 0x44]
call fcn.00401a58
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x44]
cmp dword [esi + 0xd0], ebx
je 0x405496
push dword [esi + 0xcc]
jmp 0x405498
push 0xa
push 0x4664b4
push eax
call fcn.0040181c
mov eax, dword [ebp + 0x44]
add esp, 0xc
push dword [eax - 0xc]
lea ecx, [ebp + 0x44]
call fcn.004014be
push eax
lea ecx, [ebp]
call fcn.00403c42
push str.Updatetime
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00403c42
mov ecx, dword [ebp + 0x54]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 0xc
call fcn.00421568
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x1c]
call fcn.004014e8
push ebx
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 0xa
call fcn.004014e8
push edi
lea ecx, [ebp + 0x44]
call fcn.00403306
lea eax, [ebp - 0x34]
push eax
call fcn.004032f0
push str._Y__m__d__H:_M:_S
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040503c
mov eax, dword [ebp + 0x38]
push dword [eax - 0xc]
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0xd
call fcn.004014be
push eax
lea ecx, [ebp]
call fcn.00403c42
push str.setup_time
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xe
call fcn.00403c42
mov ecx, dword [ebp + 0x54]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 0xf
call fcn.00421568
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.004014e8
push ebx
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 0xd
call fcn.004014e8
push edi
lea ecx, [ebp + 0x38]
call fcn.00403306
mov ecx, dword [ebp + 0x38]
add ecx, 0xfffffff0
call fcn.004010f6
mov ecx, dword [ebp + 0x44]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010f6
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0041fe77
mov edi, eax
cmp edi, ebx
jne 0x4055be
push dword [ebp + 0x4c]
call fcn.00448a77
pop ecx
mov ecx, dword [ebp + 0x50]
add ecx, 0xfffffff0
jmp 0x405247
push edi
call fcn.00429370
push edi
push ebx
push eax
mov dword [ebp + 0x60], eax
call fcn.00446500
add esp, 0x10
push dword [ebp + 0x60]
lea ecx, [ebp - 0x2c]
call fcn.0041fe77
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
lea esi, [eax*8 + 8]
push esi
call fcn.00429370
push esi
push ebx
push eax
mov dword [ebp + 0x3c], eax
call fcn.00446500
push edi
push dword [ebp + 0x60]
push esi
push dword [ebp + 0x3c]
call fcn.0044604f
mov eax, dword [ebp + 0x3c]
add esp, 0x20
push esi
push edi
push 8
add eax, edi
push eax
call fcn.00410b9f
test al, al
jne 0x405661
push dword [ebp + 0x3c]
call fcn.00429365
pop ecx
cmp dword [ebp + 0x60], ebx
je 0x40563a
push dword [ebp + 0x60]
call fcn.00429365
pop ecx
push dword [ebp + 0x4c]
call fcn.00448a77
pop ecx
mov ecx, dword [ebp + 0x50]
add ecx, 0xfffffff0
call fcn.004010f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00421873
mov eax, ebx
jmp 0x40525a
push esi
call fcn.00429370
push esi
push ebx
push eax
mov dword [ebp + 0x40], eax
call fcn.00446500
add esp, 0x10
xor edi, edi
mov dword [ebp + 0x54], 0x100
mov eax, dword [ebp + 0x54]
add eax, edi
cmp eax, esi
jle 0x40568e
mov eax, esi
sub eax, edi
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x3c]
push str.EnterSafe_2010Feitian__0
push dword [ebp + 0x54]
add eax, edi
push eax
mov eax, dword [ebp + 0x40]
add eax, edi
push eax
call fcn.004108bb
add edi, dword [ebp + 0x54]
cmp dword [ebp + 0x54], 0x100
jge 0x40567e
push dword [ebp + 0x4c]
push esi
push 1
push dword [ebp + 0x40]
call fcn.0044905d
push dword [ebp + 0x40]
call fcn.00429365
add esp, 0x14
cmp dword [ebp + 0x60], ebx
je 0x4056da
push dword [ebp + 0x60]
call fcn.00429365
pop ecx
push dword [ebp + 0x4c]
call fcn.00448a77
pop ecx
mov ecx, dword [ebp + 0x50]
add ecx, 0xfffffff0
call fcn.004010f6
xor ebx, ebx
inc ebx
jmp 0x40564e