Function at 0x44adaf
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], 3
jne 0x44ae1f
mov eax, dword [esi + 0x38]
cmp dword [eax + 0x24], ebx
jbe 0x44ade0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x38]
call fcn.00417310
lea ecx, [esp + 0x14]
call fcn.00417850
mov edx, dword [esi + 0x38]
cmp dword [edx + 0x24], ebx
ja 0x44adc2
mov eax, dword [esi + 0x38]
cmp dword [eax + 0x10], ebx
jbe 0x44b6c2
lea esp, [esp]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x38]
call fcn.00417170
lea ecx, [esp + 0x14]
call fcn.00417850
mov edx, dword [esi + 0x38]
cmp dword [edx + 0x10], ebx
ja 0x44adf0
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x2c
ret
cmp byte [esi + 0x1ec], bl
push ebp
push edi
je 0x44ae7b
push 0x6733cc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov di, word [0x6733c0]
push 0x6733cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x100270], bl
jne 0x44af01
cmp di, 4
jne 0x44af01
push 0x16
lea eax, [esi + 0x10025a]
push eax
push 0x10
push 2
mov ecx, esi
call fcn.004477e0
mov byte [esi + 0x100270], al
jmp 0x44af01
call fcn.00419310
movzx ecx, word [esi + 0x100296]
cmp ecx, dword [eax + 0x23e]
jl 0x44af01
lea edi, [esi + 0x1002b8]
lea ebp, [esi + 0x222]
push edi
mov ecx, ebp
call fcn.00411460
fcomp qword [0x4f6a28]
fnstsw ax
test ah, 0x41
jne 0x44af01
push ebx
push ebx
push 0x1f
push 7
mov ecx, esi
call fcn.004477e0
push ebx
push ebx
push 0x21
push 7
mov ecx, esi
call fcn.004477e0
cmp dword [esi + 0x206], 8
jb 0x44aedb
mov eax, dword [esi + 0x1f2]
jmp 0x44aee1
lea eax, [esi + 0x1f2]
push eax
push 0x4fd458
push 3
push esi
call fcn.00418e80
add esp, 0x10
push edi
mov ecx, ebp
mov byte [esi + 0x1002ec], 1
call fcn.004113f0
mov ecx, esi
call fcn.00448470
test al, al
je 0x44b6c0
cmp byte [esi + 0x100292], bl
jne 0x44b074
cmp byte [esi + 0x1ec], bl
jne 0x44af31
cmp word [esi + 0x100294], bx
jbe 0x44b074
mov edx, dword [esi + 0x20a]
push 0x12c
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, 0x102
ja 0x44b1e8
je 0x44b1b6
cmp edi, ebx
je 0x44af6c
cmp edi, 0x80
je 0x44b1f1
jmp 0x44b074
push 0x4fd32c
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
xor ebp, ebp
call fcn.00401380
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x44af8f
lea eax, [esp + 0x20]
mov edx, dword [esi + 0x21e]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
push eax
push edx
call edi
test eax, eax
je 0x44afda
cmp dword [esp + 0x14], 4
jne 0x44afda
mov ecx, dword [esi + 0x21e]
push ebx
lea eax, [esp + 0x18]
push eax
push 2
push 0x4fd11c
push ecx
call edi
test eax, eax
je 0x44afda
cmp dword [esp + 0x14], 2
jne 0x44afda
mov byte [esp + 0x13], 1
jmp 0x44afe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea ecx, [esp + 0x1c]
call fcn.004013f0
mov edx, dword [esi + 0x20e]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x20a]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [esp + 0x13], bl
je 0x44b0be
lea ecx, [esi + 0x1002b0]
lea edi, [esi + 0x222]
push ecx
mov ecx, edi
mov dword [esi + 0x10028e], ebx
mov byte [esi + 0x100292], 1
call fcn.004113f0
lea edx, [esi + 0x1002a8]
push edx
mov ecx, edi
call fcn.004113f0
lea eax, [esi + 0x1002c8]
push eax
mov ecx, edi
call fcn.004113f0
cmp dword [esi + 0x206], 8
jb 0x44b05d
mov eax, dword [esi + 0x1f2]
jmp 0x44b063
lea eax, [esi + 0x1f2]
push eax
push 0x4fd4c0
push 3
push esi
call fcn.00418e40
add esp, 0x10
mov ecx, dword [esi + 0x212]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x44b432
je 0x44b47a
cmp eax, ebx
je 0x44b26b
cmp eax, 0x80
jne 0x44b47a
cmp dword [esi + 0x206], 8
jb 0x44b248
mov eax, dword [esi + 0x1f2]
jmp 0x44b24e
cmp ebp, 0x218
jne 0x44b123
lea ecx, [esi + 0x1002b0]
lea edi, [esi + 0x222]
push ecx
mov ecx, edi
call fcn.004113f0
lea edx, [esi + 0x1002a8]
push edx
mov ecx, edi
call fcn.004113f0
cmp dword [esi + 0x206], 8
jb 0x44b0f9
mov eax, dword [esi + 0x1f2]
jmp 0x44b0ff
lea eax, [esi + 0x1f2]
push eax
push 0x4fd510
push 3
push esi
call fcn.00418e00
add esp, 0x10
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x2c
ret
mov eax, dword [esi + 0x21e]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x20a]
push ecx
mov dword [esi + 0x21e], ebx
call edi
lea edx, [esi + 0x1002a0]
push edx
lea ecx, [esi + 0x222]
mov dword [esi + 0x20a], ebx
mov byte [esi + 0x100292], bl
mov word [esi + 0x100294], bx
mov dword [esi + 0x100298], ebx
mov dword [esi + 0x10029c], ebx
call fcn.004113f0
add word [esi + 0x100296], 1
cmp dword [esi + 0x206], 8
jb 0x44b18b
mov eax, dword [esi + 0x1f2]
jmp 0x44b191
lea eax, [esi + 0x1f2]
push ebp
push eax
push 0x4fd568
push 3
push esi
call fcn.00418e80
add esp, 0x14
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x2c
ret
add dword [esi + 0x10028e], 1
cmp dword [esi + 0x206], 8
jb 0x44b1d7
mov eax, dword [esi + 0x1f2]
push eax
push 0x4fd5f0
jmp 0x44b069
lea eax, [esi + 0x1f2]
push eax
push 0x4fd5f0
jmp 0x44b069
cmp edi, 0xffffffff
jne 0x44b074
mov eax, dword [esi + 0x20a]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add word [esi + 0x100296], 1
mov dword [esi + 0x20a], ebx
cmp dword [esi + 0x206], 8
jb 0x44b21d
mov eax, dword [esi + 0x1f2]
jmp 0x44b223
lea eax, [esi + 0x1f2]
push edi
push eax
push 0x4fd638
push 3
push esi
call fcn.00418e40
add esp, 0x14
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x2c
ret
lea eax, [esi + 0x1f2]
push eax
push 0x4fd750
push 3
push esi
call fcn.00418e40
mov edx, dword [esi + 0x212]
add esp, 0x10
push edx
jmp 0x44b466
mov eax, dword [esi + 0x20a]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
cmp ebp, 0x102
ja 0x44b34a
je 0x44b316
cmp ebp, ebx
je 0x44b2a3
cmp ebp, 0x80
je 0x44b353
jmp 0x44b47a
mov ecx, esi
call fcn.0044a060
mov byte [esp + 0x13], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x212]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi + 0x20a]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [esp + 0x13], bl
je 0x44b2e1
mov dword [esi + 0x10028e], ebx
jmp 0x44b47a
add dword [esi + 0x10028e], 1
cmp dword [esi + 0x206], 8
jb 0x44b2f9
mov eax, dword [esi + 0x1f2]
jmp 0x44b2ff
lea eax, [esi + 0x1f2]
push edi
push eax
push 0x4fd68c
push 3
push esi
call fcn.00418e80
add esp, 0x14
jmp 0x44b47a
add dword [esi + 0x10028e], 1
cmp dword [esi + 0x206], 8
jb 0x44b32e
mov eax, dword [esi + 0x1f2]
jmp 0x44b334
lea eax, [esi + 0x1f2]
push eax
push 0x4fd5bc
push 3
push esi
call fcn.00418e40
add esp, 0x10
jmp 0x44b47a
cmp ebp, 0xffffffff
jne 0x44b47a
mov eax, dword [esi + 0x20a]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
cmp byte [esi + 0x1ec], bl
mov dword [esi + 0x20a], ebx
jne 0x44b6c0
mov ecx, dword [esi + 0x21e]
push ecx
call edi
mov edx, dword [esi + 0x216]
push edx
mov dword [esi + 0x21e], ebx
mov byte [esi + 0x100292], bl
mov word [esi + 0x100294], bx
call edi
mov dword [esi + 0x216], ebx
mov byte [esi + 0x100258], bl
mov dword [esi + 0x1002dc], ebx
mov dword [esi + 0x1002e0], ebx
mov dword [esi + 0x1002e4], ebx
mov dword [esi + 0x1002e8], ebx
lea eax, [esi + 0x1002a0]
push eax
lea ecx, [esi + 0x222]
mov dword [esi + 0x1002d4], ebx
mov dword [esi + 0x1002d8], ebx
mov word [esi + 0x1002ee], bx
mov dword [esi + 0x100298], ebx
mov dword [esi + 0x10029c], ebx
call fcn.004113f0
add word [esi + 0x100296], 1
cmp dword [esi + 0x206], 8
jb 0x44b407
mov eax, dword [esi + 0x1f2]
jmp 0x44b40d
lea eax, [esi + 0x1f2]
push ebp
push eax
push 0x4fd6d0
push 3
push esi
call fcn.00418e40
add esp, 0x14
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x2c
ret
cmp eax, 0xffffffff
jne 0x44b47a
cmp dword [esi + 0x206], 8
jb 0x44b448
mov eax, dword [esi + 0x1f2]
jmp 0x44b44e
lea eax, [esi + 0x1f2]
push eax
push 0x4fd794
push 3
push esi
call fcn.00418e40
mov ecx, dword [esi + 0x212]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add word [esi + 0x100296], 1
mov dword [esi + 0x212], ebx
call fcn.00419310
mov edx, dword [esi + 0x10028e]
cmp edx, dword [eax + 0x23a]
jle 0x44b523
mov eax, dword [esi + 0x21e]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x20a]
push ecx
mov dword [esi + 0x21e], ebx
mov byte [esi + 0x100292], bl
mov word [esi + 0x100294], bx
call edi
lea edx, [esi + 0x1002a0]
push edx
lea ecx, [esi + 0x222]
mov dword [esi + 0x20a], ebx
mov dword [esi + 0x100298], ebx
mov dword [esi + 0x10029c], ebx
call fcn.004113f0
add word [esi + 0x100296], 1
cmp dword [esi + 0x206], 8
jb 0x44b4f9
mov eax, dword [esi + 0x1f2]
jmp 0x44b4ff
lea eax, [esi + 0x1f2]
push eax
push 0x4fd7d8
push 3
push esi
call fcn.00418e40
add esp, 0x10
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x2c
ret
lea ebp, [esi + 0x1002b0]
lea edi, [esi + 0x222]
push ebp
mov ecx, edi
call fcn.00411460
fstp qword [esp + 0x14]
call fcn.00419310
fld qword [esp + 0x14]
fcomp qword [eax + 0x24a]
fnstsw ax
test ah, 0x41
jne 0x44b56d
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x38]
push ebx
push ebx
push 0x23
push 9
push 0xfffffffffffffffe
push eax
call fcn.004175b0
push ebp
mov ecx, edi
call fcn.004113f0
lea ecx, [esi + 0x1002a8]
push ecx
mov ecx, edi
call fcn.00411460
fstp qword [esp + 0x14]
call fcn.00419310
fld qword [esp + 0x14]
fcomp qword [eax + 0x262]
fnstsw ax
test ah, 0x41
jne 0x44b627
mov edx, dword [esi + 0x21e]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebp
mov eax, dword [esi + 0x20a]
push eax
mov dword [esi + 0x21e], ebx
mov byte [esi + 0x100292], bl
mov word [esi + 0x100294], bx
call ebp
lea ecx, [esi + 0x1002a0]
push ecx
mov ecx, edi
mov dword [esi + 0x20a], ebx
mov dword [esi + 0x100298], ebx
mov dword [esi + 0x10029c], ebx
call fcn.004113f0
add word [esi + 0x100296], 1
cmp dword [esi + 0x206], 8
jb 0x44b5fd
mov eax, dword [esi + 0x1f2]
jmp 0x44b603
lea eax, [esi + 0x1f2]
push eax
push 0x4fd724
push 3
push esi
call fcn.00418e40
add esp, 0x10
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x2c
ret
cmp word [esi + 0x100296], bx
jbe 0x44b6c0
cmp dword [esi + 0x10029c], ebx
lea ebp, [esi + 0x100298]
ja 0x44b647
cmp dword [ebp], ebx
jbe 0x44b6c0
push ebp
mov ecx, edi
call fcn.00411460
fstp qword [esp + 0x14]
call fcn.00419310
fld qword [esp + 0x14]
fcomp qword [eax + 0x242]
fnstsw ax
test ah, 0x41
jne 0x44b6c0
cmp dword [esi + 0x206], 8
jb 0x44b67e
mov edx, dword [esi + 0x1f2]
mov dword [esp + 0x14], edx
jmp 0x44b688
lea eax, [esi + 0x1f2]
mov dword [esp + 0x14], eax
push ebp
mov ecx, edi
call fcn.00411460
fmul qword [0x4f5e48]
call fcn.004c1540
movzx ecx, word [esi + 0x100296]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push 0x4fd828
push 3
push esi
call fcn.00418e40
add esp, 0x18
mov word [esi + 0x100296], bx
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
xor ecx, esp
call fcn.004bfdfd
add esp, 0x2c
ret