Function at 0x40d914
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x4c], al
mov dword [ebp - 0x28], 0x484ce0
lea edi, [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp], edi
lea ebx, [ebp - 0x28]
call fcn.0040b220
push ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00417ec8
mov eax, dword [ebp - 0x2c]
lea ebx, [eax - 0xc]
cmp ebx, 0x484cd4
jne 0x40dc40
mov dword [esp + 8], 0
lea ebx, [ebp - 0x28]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040d3d0
mov dword [ebp - 0x30], 0x49d1c8
mov dword [esp], 0x49d1c8
call dword [method.QReadWriteLock.lockForWrite__]
mov eax, 0x49d1c8
or eax, 1
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0040b220
push ecx
mov edi, dword [ebp - 0x34]
mov dword [esp + 4], 0x485c1d
mov dword [esp], edi
call sub.msvcrt.dll_fopen
mov esi, eax
lea edx, [edi - 0xc]
mov dword [ebp - 0x50], edx
mov ecx, 0x484cd4
cmp ecx, edx
jne 0x40dbd3
test esi, esi
je 0x40db9c
mov eax, dword [ebp - 0x28]
mov edx, dword [eax - 4]
test edx, edx
js 0x40d9ef
mov dword [esp], ebx
call fcn.0044f14c
mov eax, dword [ebp - 0x28]
cmp byte [eax], 0xef
je 0x40dba4
mov dword [esp + 0xc], esi
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x485ccf
call sub.msvcrt.dll_fwrite
cmp byte [ebp - 0x4c], 0
je 0x40db3c
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Huawei_
lea edx, [ebp - 0x38]
mov dword [esp], edx
call fcn.00450af4
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Wuminghui_
lea ecx, [ebp - 0x3c]
mov dword [esp], ecx
call fcn.00450af4
lea eax, [ebp - 0x1b]
mov dword [esp + 8], eax
mov dword [esp + 4], str.63386
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.00450af4
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x485c1c
lea edi, [ebp - 0x44]
mov dword [esp], edi
call fcn.00450af4
lea edx, [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.0044fadc
lea ecx, [ebp - 0x3c]
mov dword [esp + 4], ecx
mov dword [esp], edi
call fcn.0044fadc
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0044fadc
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
lea edx, [ebp - 0x48]
mov dword [esp], edx
call fcn.0040ae80
push eax
lea ecx, [ebp - 0x48]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.0044fe18
mov eax, dword [ebp - 0x48]
lea edx, [eax - 0xc]
mov dword [ebp - 0x4c], edx
mov ecx, 0x484cd4
cmp ecx, edx
jne 0x40dcb8
mov eax, dword [ebp - 0x44]
lea edi, [eax - 0xc]
mov ecx, 0x484cd4
cmp ecx, edi
jne 0x40dd3d
mov eax, dword [ebp - 0x40]
lea edi, [eax - 0xc]
mov ecx, 0x484cd4
cmp ecx, edi
jne 0x40dd0b
mov eax, dword [ebp - 0x3c]
lea edi, [eax - 0xc]
mov ecx, 0x484cd4
cmp ecx, edi
jne 0x40dd87
mov eax, dword [ebp - 0x38]
lea edi, [eax - 0xc]
mov ecx, 0x484cd4
cmp ecx, edi
jne 0x40dc0e
mov eax, dword [ebp - 0x28]
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 0x40db6f
test al, 1
jne 0x40db8c
mov eax, dword [ebp - 0x28]
lea ebx, [eax - 0xc]
mov edx, 0x484cd4
cmp edx, ebx
jne 0x40dc72
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 0x40db6f
mov esi, 0xffffffff
jmp 0x40db64
mov dword [esp], ebx
call fcn.0045039c
mov eax, dword [ebp - 0x28]
cmp byte [eax + 1], 0xbb
jne 0x40d9f8
mov dword [esp], ebx
call fcn.0045039c
mov eax, dword [ebp - 0x28]
cmp byte [eax + 2], 0xbf
jne 0x40d9f8
jmp 0x40da18
cmp dword [0x49d24c], 0
jne 0x40dca0
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 0x40d9d2
lea eax, [ebp - 0x1e]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call fcn.0044f5c8
jmp 0x40d9d2
cmp dword [0x49d24c], 0
jne 0x40de5d
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x40db3c
lea eax, [ebp - 0x23]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0044f5c8
jmp 0x40db3c
cmp dword [0x49d24c], 0
jne 0x40dd6f
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
mov dword [ebx + 8], edx
test eax, eax
jg 0x40d964
lea eax, [ebp - 0x1d]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0044f5c8
jmp 0x40d964
cmp dword [0x49d24c], 0
jne 0x40dcf3
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
mov dword [ebx + 8], edx
test eax, eax
jg 0x40db82
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0044f5c8
jmp 0x40db82
mov dword [esp + 4], 0xffffffff
sub edi, 4
mov dword [esp], edi
call fcn.00428e80
jmp 0x40dbef
cmp dword [0x49d24c], 0
jne 0x40deb8
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
lea edx, [eax - 1]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 8], edx
test eax, eax
jg 0x40daf0
lea eax, [ebp - 0x1f]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.0044f5c8
jmp 0x40daf0
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00428e80
jmp 0x40dc84
cmp dword [0x49d24c], 0
jne 0x40de45
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x40db16
lea eax, [ebp - 0x21]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0044f5c8
jmp 0x40db16
cmp dword [0x49d24c], 0
jne 0x40de7d
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x40db03
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0044f5c8
jmp 0x40db03
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00428e80
jmp 0x40dc56
cmp dword [0x49d24c], 0
jne 0x40deeb
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x40db29
lea eax, [ebp - 0x22]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0044f5c8
jmp 0x40db29
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00428e80
jmp 0x40dd21
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00428e80
jmp 0x40dc24
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00428e80
jmp 0x40dd53
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00428e80
jmp 0x40dcd4
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00428e80
jmp 0x40dd9d