Function at 0x40d114
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x49], al
mov dword [ebp - 0x24], 0x486540
lea esi, [ebp - 0x28]
mov dword [esp + 4], edi
mov dword [esp], esi
lea ebx, [ebp - 0x24]
call fcn.0040b070
push edx
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0041868c
mov eax, dword [ebp - 0x28]
lea ebx, [eax - 0xc]
cmp ebx, 0x486534
jne 0x40d3e6
mov dword [esp + 8], 0
lea ebx, [ebp - 0x24]
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0040cc9c
lea esi, [ebp - 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040bec0
push eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00451370
mov eax, dword [ebp - 0x2c]
lea esi, [eax - 0xc]
mov edx, 0x486534
cmp edx, esi
jne 0x40d3b4
mov dword [ebp - 0x30], 0x49e1d8
mov dword [esp], 0x49e1d8
call dword [method.QReadWriteLock.lockForWrite__]
mov eax, 0x49e1d8
or eax, 1
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040b070
push ecx
mov edi, dword [ebp - 0x34]
mov dword [esp + 4], 0x487509
mov dword [esp], edi
call sub.msvcrt.dll_fopen
mov esi, eax
lea ecx, [edi - 0xc]
mov dword [ebp - 0x50], ecx
mov eax, 0x486534
cmp eax, ecx
jne 0x40d347
test esi, esi
je 0x40d310
mov eax, dword [ebp - 0x24]
mov edx, dword [eax - 4]
test edx, edx
js 0x40d21e
mov dword [esp], ebx
call fcn.004506a4
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0xef
je 0x40d318
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 - 0x49], 0
je 0x40d2b0
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Huawei_Wuminghui_63386
lea edx, [ebp - 0x38]
mov dword [esp], edx
call fcn.0045204c
lea edi, [ebp - 0x3c]
lea ecx, [ebp - 0x38]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0040b948
push eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00451370
mov eax, dword [ebp - 0x3c]
lea edi, [eax - 0xc]
mov edx, 0x486534
cmp edx, edi
jne 0x40d473
mov eax, dword [ebp - 0x38]
lea edi, [eax - 0xc]
mov edx, 0x486534
cmp edx, edi
jne 0x40d382
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 - 0x30]
test eax, eax
je 0x40d2e3
test al, 1
jne 0x40d300
mov eax, dword [ebp - 0x24]
lea ebx, [eax - 0xc]
mov ecx, 0x486534
cmp ecx, ebx
jne 0x40d418
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 0x40d2e3
mov esi, 0xffffffff
jmp 0x40d2d8
mov dword [esp], ebx
call fcn.004518f4
mov eax, dword [ebp - 0x24]
cmp byte [eax + 1], 0xbb
jne 0x40d227
mov dword [esp], ebx
call fcn.004518f4
mov eax, dword [ebp - 0x24]
cmp byte [eax + 2], 0xbf
jne 0x40d227
jmp 0x40d247
cmp dword [0x49e25c], 0
jne 0x40d446
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 8]
lea edx, [eax - 1]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 8], edx
test eax, eax
jg 0x40d201
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call fcn.00450b20
jmp 0x40d201
cmp dword [0x49e25c], 0
jne 0x40d55a
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x40d2b0
lea eax, [ebp - 0x1e]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00450b20
jmp 0x40d2b0
cmp dword [0x49e25c], 0
jne 0x40d4a5
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x40d1aa
lea eax, [ebp - 0x1b]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00450b20
jmp 0x40d1aa
cmp dword [0x49e25c], 0
jne 0x40d4bd
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
mov dword [ebx + 8], edx
test eax, eax
jg 0x40d164
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00450b20
jmp 0x40d164
cmp dword [0x49e25c], 0
jne 0x40d45e
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
mov dword [ebx + 8], edx
test eax, eax
jg 0x40d2f6
lea eax, [ebp - 0x1f]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00450b20
jmp 0x40d2f6
mov dword [esp + 4], 0xffffffff
sub edi, 4
mov dword [esp], edi
call fcn.0042a360
jmp 0x40d363
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a360
jmp 0x40d42a
cmp dword [0x49e25c], 0
jne 0x40d57f
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x40d29d
lea eax, [ebp - 0x1d]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00450b20
jmp 0x40d29d
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a360
jmp 0x40d3ca
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a360
jmp 0x40d3fc
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a360
jmp 0x40d398
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a360
jmp 0x40d489