Function at 0x40d7f8
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], 0x485ce0
lea edi, [ebp - 0x28]
mov dword [esp + 4], esi
mov dword [esp], edi
lea ebx, [ebp - 0x24]
call fcn.0040c300
push ebx
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00418ce4
mov eax, dword [ebp - 0x28]
lea ebx, [eax - 0xc]
mov edi, 0x485cd4
cmp ebx, edi
jne 0x40da6e
mov dword [esp + 8], 0
lea ebx, [ebp - 0x24]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040d388
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.0040c300
push ecx
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], 0x486d15
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 0x40d9fb
test esi, esi
je 0x40d9c4
mov eax, dword [ebp - 0x24]
mov edx, dword [eax - 4]
test edx, edx
js 0x40d8d5
mov dword [esp], ebx
call fcn.004502a4
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0xef
je 0x40d9cc
mov dword [esp + 0xc], esi
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x486dcb
call sub.msvcrt.dll_fwrite
cmp byte [ebp - 0x3c], 0
je 0x40d966
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.00451c4c
lea ecx, [ebp - 0x34]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.0040bf60
push eax
lea edx, [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00450f70
mov eax, dword [ebp - 0x38]
lea ecx, [eax - 0xc]
mov dword [ebp - 0x3c], ecx
cmp edi, ecx
jne 0x40dafb
mov eax, dword [ebp - 0x34]
lea edx, [eax - 0xc]
mov dword [ebp - 0x3c], edx
cmp edi, edx
jne 0x40da36
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 0x40d999
test al, 1
jne 0x40d9b4
mov eax, dword [ebp - 0x24]
lea ebx, [eax - 0xc]
cmp edi, ebx
jne 0x40daa0
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 0x40d999
mov esi, 0xffffffff
jmp 0x40d98e
mov dword [esp], ebx
call fcn.004514f4
mov eax, dword [ebp - 0x24]
cmp byte [eax + 1], 0xbb
jne 0x40d8de
mov dword [esp], ebx
call fcn.004514f4
mov eax, dword [ebp - 0x24]
cmp byte [eax + 2], 0xbf
jne 0x40d8de
jmp 0x40d8fe
cmp dword [0x49e25c], 0
jne 0x40dace
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 0x40d8b8
lea eax, [ebp - 0x1b]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.00450720
jmp 0x40d8b8
cmp dword [0x49e25c], 0
jne 0x40dbce
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 8]
lea edx, [eax - 1]
mov dword [ecx + 8], edx
test eax, eax
jg 0x40d966
lea eax, [ebp - 0x1d]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00450720
jmp 0x40d966
cmp dword [0x49e25c], 0
jne 0x40db36
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
mov dword [ebx + 8], edx
test eax, eax
jg 0x40d849
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00450720
jmp 0x40d849
cmp dword [0x49e25c], 0
jne 0x40dae6
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
mov dword [ebx + 8], edx
test eax, eax
jg 0x40d9a7
lea eax, [ebp - 0x1e]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00450720
jmp 0x40d9a7
mov dword [esp + 4], 0xffffffff
sub edx, 4
mov dword [esp], edx
call fcn.00429f60
jmp 0x40da17
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00429f60
jmp 0x40dab2
cmp dword [0x49e25c], 0
jne 0x40dbe6
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 0x40d955
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00450720
jmp 0x40d955
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00429f60
jmp 0x40da84
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00429f60
jmp 0x40da4f
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00429f60
jmp 0x40db17