Function at 0x44d620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6a20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
call fcn.0044d540
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
push ebx
push 0x80
push 2
push ebx
push 3
push 0x10000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x44d6d0
call fcn.0040b660
cmp eax, ebx
jge 0x44d6d3
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44d6b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x2c], eax
lea ecx, [esi + 8]
mov dword [ebp - 0x34], vtable.rw_read_locker.0
mov dword [ebp - 0x30], ecx
cmp ecx, ebx
je 0x44d6ea
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44d707
push ebx
push 0x4e6ea0
push 0x4e6ea0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 6
mov eax, dword [esi + 0x90]
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
cmp eax, ebx
jg 0x44d7a7
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], vtable.rw_read_locker.0
cmp ecx, ebx
je 0x44d73a
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44d757
push ebx
push 0x4e6ea0
push 0x4e6ea0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44d77a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x44d792
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
cmp edi, ebx
jl 0x44d99d
cmp edi, dword [esi + 0x90]
jge 0x44d99d
mov ecx, dword [esi + 0x8c]
mov edx, dword [0x52ddd4]
mov esi, dword [ecx + edi*4]
lea eax, [ecx + edi*4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 8
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x10]
push 0x4ec354
push ecx
call fcn.00409340
add esp, 0xc
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 9
lea edx, [ebp - 0x40]
push edx
lea ecx, [esi + 0x48c]
call fcn.00437b60
mov eax, dword [ebp - 0x3c]
xor esi, esi
mov ebx, eax
test eax, eax
jle 0x44d861
xor edi, edi
jmp 0x44d824
mov eax, dword [ebp - 0x3c]
test esi, esi
js 0x44d8d5
cmp esi, eax
jge 0x44d8d5
mov eax, dword [ebp - 0x40]
mov edx, dword [edi + eax + 4]
xor ecx, ecx
cmp byte [edi + eax], cl
lea eax, [ebp - 0x10]
setne cl
push ecx
push edx
push str._d__d_
push eax
call fcn.00446fa0
inc esi
add esp, 0x10
add edi, 0xc
cmp esi, ebx
jl 0x44d821
mov edi, dword [ebp - 0x18]
push 2
push 0x4ec348
lea ecx, [ebp - 0x10]
call fcn.00446770
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
mov ebx, dword [ebp - 0x2c]
push 0
lea ecx, [ebp - 0x24]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44d895
call fcn.0040b660
test eax, eax
js 0x44d8e6
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.00446fc0
mov byte [ebp - 4], 6
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44d8c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
xor ebx, ebx
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x20]
jl 0x44d7a4
jmp 0x44d721
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.00446fc0
mov byte [ebp - 4], 6
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44d912
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], vtable.rw_read_locker.0
test ecx, ecx
je 0x44d92b
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
push 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44d94b
push 0
push 0x4e6ea0
push 0x4e6ea0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44d96e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x44d792
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]