Function at 0x40e040
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4a9ec8]
push ebx
push ebp
push esi
mov ebx, edx
mov dword [eax], 0
push edi
mov dword [esp + 0x10], ebx
jmp 0x40e060
mov ecx, dword [0x4a9ec8]
mov eax, dword [ecx]
test eax, eax
je 0x40e07a
mov eax, dword [eax]
test eax, eax
je 0x40e076
mov dword [ecx], eax
jmp 0x40e087
xor eax, eax
jmp 0x40e07f
mov eax, dword [ecx + 4]
mov dword [ecx], eax
test eax, eax
je 0x40e54b
mov ebp, dword [eax + 8]
push str.Object
mov dword [esp + 0x20], ebp
push dword [ebp + 8]
call fcn.0044e716
add esp, 8
test eax, eax
jne 0x40e1ab
cmp dword [0x4a9a00], 0
mov edx, 0x49a800
mov ax, word [0x46ea5c]
mov esi, edx
mov word [0x49b320], ax
mov al, byte [0x46ea5e]
mov byte [0x49b322], al
je 0x40e118
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x40e0d0
mov edi, 0x49b320
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e0e0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x49b320
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e100
mov ecx, 8
mov esi, str.compilers_objectmanagerthread.lib
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x40e157
mov al, byte [edx]
inc edx
test al, al
jne 0x40e118
mov edi, 0x49b320
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e127
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x49b320
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e143
mov ecx, 7
mov esi, str.compilers_objectmanager.lib
rep movsd dword es:[edi], dword [esi]
mov edi, 0x49b320
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40e160
mov ax, word [0x46ea84]
mov edx, 0x49b320
mov word [edi], ax
mov esi, edx
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x40e180
mov edi, 0x4923e0
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e190
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40e52b
cmp dword [ebp + 0x24], 1
mov ebx, str..obj
je 0x40e1bb
mov ebx, str..lib
mov ecx, dword [ebp + 8]
mov edx, 0x49b320
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40e1c3
mov edx, ebx
mov esi, ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x40e1d5
mov edi, 0x49b320
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e1e4
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x20]
mov ecx, 0x49b320
mov ebp, dword [ebp + 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e208
sub ecx, edx
mov dword [esp + 0x14], 0x208
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
push 0x49b320
lea edx, [esp + 0x1c]
mov ecx, 0x488df0
call fcn.004317d0
add esp, 8
test eax, eax
jne 0x40e253
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
mov word [eax*2 + 0x488df0], cx
mov eax, 0x488df0
jmp 0x40e258
mov eax, 0x479868
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e293
test esi, esi
je 0x40e293
push 0
lea eax, [esp + 0x24]
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x1c]
mov eax, 0x20
mov word [0x49b320], ax
mov edx, dword [ebp + 8]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40e2a7
mov edi, 0x49b320
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e2b6
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40e2d0
mov edi, 0x49b320
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e2e0
mov ecx, edx
mov eax, 0x20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [0x49b320], ax
mov edx, dword [ebp + 8]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40e306
mov edi, 0x49b320
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e315
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
lea ecx, [ecx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40e330
mov edi, 0x49b320
sub ebx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e340
mov ecx, ebx
mov edx, 0x49b320
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
lea ecx, [ecx]
mov al, byte [edx]
inc edx
test al, al
jne 0x40e360
mov edi, 0x4923e0
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e370
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp dword [0x49b074], 0
rep movsb byte es:[edi], byte [esi]
je 0x40e527
cmp dword [ebp + 0x28], 0
je 0x40e527
mov ecx, dword [ebp + 8]
mov edx, 0x49b320
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40e3a5
mov ecx, 0x49b320
dec ecx
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40e3c0
mov eax, dword [str._Debug.obj]
mov dword [ecx], eax
mov eax, dword [0x46eac0]
mov dword [ecx + 4], eax
mov ax, word [0x46eac4]
mov word [ecx + 8], ax
mov al, byte [0x46eac6]
mov byte [ecx + 0xa], al
mov ecx, 0x49b320
mov edi, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x28]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e400
sub ecx, edx
mov dword [esp + 0x14], 0x208
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
push 0x49b320
lea edx, [esp + 0x1c]
mov ecx, 0x488df0
call fcn.004317d0
add esp, 8
test eax, eax
jne 0x40e44b
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
mov word [eax*2 + 0x488df0], cx
mov eax, 0x488df0
jmp 0x40e450
mov eax, 0x479868
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e48b
test esi, esi
je 0x40e48b
push 0
lea eax, [esp + 0x28]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x20
mov word [0x49b320], ax
mov edx, dword [ebp + 8]
mov esi, edx
jmp 0x40e4a0
mov al, byte [edx]
inc edx
test al, al
jne 0x40e4a0
mov edi, 0x49b320
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e4b0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x49b320
dec ecx
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40e4d0
mov eax, dword [str._Debug.obj]
mov edx, 0x49b320
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x46eac0]
mov dword [ecx + 4], eax
mov ax, word [0x46eac4]
mov word [ecx + 8], ax
mov al, byte [0x46eac6]
mov byte [ecx + 0xa], al
mov al, byte [edx]
inc edx
test al, al
jne 0x40e502
mov edi, 0x4923e0
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e511
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x40e060
mov edx, dword [ebp + 0x30]
mov ecx, ebx
push 1
push eax
call fcn.0040d250
add esp, 8
jmp 0x40e060
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret