Function at 0x40d114
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x3c], al
mov dword [ebp - 0x24], 0x486540
lea edi, [ebp - 0x28]
mov dword [esp + 4], esi
mov dword [esp], edi
lea ebx, [ebp - 0x24]
call fcn.0040b070
push ebx
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00418600
mov eax, dword [ebp - 0x28]
lea ebx, [eax - 0xc]
mov edi, 0x486534
cmp ebx, edi
jne 0x40d38a
mov dword [esp + 8], 0
lea ebx, [ebp - 0x24]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040cc9c
mov dword [ebp - 0x2c], 0x49e1d8
mov dword [esp], 0x49e1d8
call dword [method.QReadWriteLock.lockForWrite__]
mov eax, 0x49e1d8
or eax, 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0040b070
push ecx
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], 0x487509
mov dword [esp], edx
mov dword [ebp - 0x44], edx
call sub.msvcrt.dll_fopen
mov esi, eax
mov edx, dword [ebp - 0x44]
lea ecx, [edx - 0xc]
mov dword [ebp - 0x40], ecx
cmp edi, ecx
jne 0x40d317
test esi, esi
je 0x40d2e0
mov eax, dword [ebp - 0x24]
mov edx, dword [eax - 4]
test edx, edx
js 0x40d1f1
mov dword [esp], ebx
call fcn.00450624
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0xef
je 0x40d2e8
mov dword [esp + 0xc], esi
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x4875bf
call sub.msvcrt.dll_fwrite
cmp byte [ebp - 0x3c], 0
je 0x40d282
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Huawei_Wuminghui_63386
lea edx, [ebp - 0x34]
mov dword [esp], edx
call fcn.00451fcc
lea ecx, [ebp - 0x34]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.0040b948
push eax
lea edx, [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.004512f0
mov eax, dword [ebp - 0x38]
lea ecx, [eax - 0xc]
mov dword [ebp - 0x3c], ecx
cmp edi, ecx
jne 0x40d417
mov eax, dword [ebp - 0x34]
lea edx, [eax - 0xc]
mov dword [ebp - 0x3c], edx
cmp edi, edx
jne 0x40d352
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], esi
mov edx, dword [eax - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_fclose
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40d2b5
test al, 1
jne 0x40d2d0
mov eax, dword [ebp - 0x24]
lea ebx, [eax - 0xc]
cmp edi, ebx
jne 0x40d3bc
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
and eax, 0xfffffffe
mov dword [esp], eax
call dword [method.QReadWriteLock.unlock__]
jmp 0x40d2b5
mov esi, 0xffffffff
jmp 0x40d2aa
mov dword [esp], ebx
call fcn.00451874
mov eax, dword [ebp - 0x24]
cmp byte [eax + 1], 0xbb
jne 0x40d1fa
mov dword [esp], ebx
call fcn.00451874
mov eax, dword [ebp - 0x24]
cmp byte [eax + 2], 0xbf
jne 0x40d1fa
jmp 0x40d21a
cmp dword [0x49e25c], 0
jne 0x40d3ea
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
lea edx, [eax - 1]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 8], edx
test eax, eax
jg 0x40d1d4
lea eax, [ebp - 0x1b]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.00450aa0
jmp 0x40d1d4
cmp dword [0x49e25c], 0
jne 0x40d4ea
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 8]
lea edx, [eax - 1]
mov dword [ecx + 8], edx
test eax, eax
jg 0x40d282
lea eax, [ebp - 0x1d]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00450aa0
jmp 0x40d282
cmp dword [0x49e25c], 0
jne 0x40d452
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
mov dword [ebx + 8], edx
test eax, eax
jg 0x40d165
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00450aa0
jmp 0x40d165
cmp dword [0x49e25c], 0
jne 0x40d402
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
mov dword [ebx + 8], edx
test eax, eax
jg 0x40d2c3
lea eax, [ebp - 0x1e]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00450aa0
jmp 0x40d2c3
mov dword [esp + 4], 0xffffffff
sub edx, 4
mov dword [esp], edx
call fcn.0042a2e0
jmp 0x40d333
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a2e0
jmp 0x40d3ce
cmp dword [0x49e25c], 0
jne 0x40d502
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 8]
lea edx, [eax - 1]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 8], edx
test eax, eax
jg 0x40d271
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00450aa0
jmp 0x40d271
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a2e0
jmp 0x40d3a0
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a2e0
jmp 0x40d36b
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a2e0
jmp 0x40d433