Function at 0x447a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 0xbc], ebx
mov eax, dword [esi + 0x20]
or eax, dword [esi + 0x24]
mov edx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xac], ecx
mov byte [ebp - 0xad], 0
jne 0x447adb
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x447adb
call edx
push dword [ebx + 0x4ac]
mov ecx, eax
mov eax, 0x10624dd3
push dword [ebx + 0x4a8]
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
push eax
push edx
call fcn.00444350
mov ecx, dword [ebp - 0xac]
add esp, 0x10
mov edx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
movsd qword [ebx + 0x490], xmm0
or dword [ecx], 2
cmp dword [ebx + 0x108], 0
jne 0x447d28
mov eax, dword [esi + 0xa0]
mov dword [ebx + 0x10c], eax
cmp byte [esi + 0xac], 0
jne 0x447ce1
cmp dword [esi + 0x84], 2
mov ecx, dword [ebx + 0x114]
jne 0x447b7e
cmp dword [ecx + 0x58], 2
jne 0x447b7e
and dword [esi + 0xa8], 0xfffffffd
mov dword [esi + 0x84], 1
call edx
mov ecx, dword [ebp - 0xb8]
mov edi, eax
mov eax, 0x10624dd3
mul edi
shr edx, 6
imul esi, edx, 0x3e8
mov dword [ecx + 0x7c], edx
sub edi, esi
imul eax, edi, 0x3e8
mov dword [ecx + 0x80], eax
mov ecx, ebx
mov eax, dword [ebp - 0xac]
and dword [eax], 0xfffffffd
mov edx, dword [ebx + 0x3f0]
call fcn.0043a050
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x1ec]
test dword [eax + 0x3c], 0x40003
je 0x447b98
cmp dword [ecx + 0x58], 1
sete byte [ebp - 0xad]
lea eax, [ebp - 0xac]
mov edx, 0x4000
push eax
mov ecx, edi
call fcn.00446c30
add esp, 4
test eax, eax
jne 0x447f37
mov edi, dword [ebp - 0xac]
test edi, edi
je 0x447ce1
jle 0x447cee
mov dword [ebx + 0x108], edi
cmp byte [ebp - 0xad], al
jne 0x447cae
cmp byte [ebx + 0x216], al
je 0x447cae
cmp dword [ebx + 0x856c], eax
jne 0x447c2c
push 0x8000
call dword [0x50079c]
add esp, 4
mov dword [ebx + 0x856c], eax
test eax, eax
jne 0x447c2c
push str.Failed_to_alloc_scratch_buffer_
push ebx
call fcn.004437f0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x447c96
jmp 0x447c40
mov eax, dword [ebx + 0x10c]
mov al, byte [edx + eax]
mov byte [ebp - 0xad], al
cmp al, 0xa
mov eax, dword [ebx + 0x856c]
jne 0x447c81
mov byte [ecx + eax], 0xd
inc ecx
mov eax, dword [ebx + 0x856c]
mov byte [ecx + eax], 0xa
cmp byte [ebx + 0x216], 0
jne 0x447c90
add dword [ebx + 0x8648], 1
adc dword [ebx + 0x864c], 0
jmp 0x447c90
mov bl, byte [ebp - 0xad]
mov byte [ecx + eax], bl
mov ebx, dword [ebp - 0xbc]
inc edx
inc ecx
cmp edx, edi
jl 0x447c40
cmp ecx, edi
je 0x447cae
mov eax, dword [ebx + 0x856c]
mov edi, ecx
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x108], ecx
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ecx + 0x1ec]
test dword [eax + 0x3c], 0x30000
je 0x447d26
mov edx, edi
mov edi, ecx
call fcn.00461a10
test eax, eax
je 0x447d28
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
test byte [esi + 0xa8], 0x20
jne 0x447f35
mov ecx, dword [ebp - 0xb4]
and dword [esi + 0xa8], 0xfffffffd
cmp byte [ecx + 0x1cf], 0
je 0x447f35
call fcn.00446e20
test eax, eax
je 0x447f35
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov edi, ecx
mov eax, dword [edi + 0x1fc]
xor ecx, ecx
cmp eax, dword [edi + 0x158]
lea eax, [ebp - 0xac]
push eax
push dword [ebx + 0x108]
sete cl
mov dword [ebp - 0xac], 0
push dword [ebx + 0x10c]
push ecx
mov eax, dword [edi + ecx*4 + 0x170]
push edi
call eax
add esp, 0x14
mov dword [ebp - 0xb4], eax
test eax, eax
jns 0x447d8f
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x447e86
cmp eax, 0x51
jne 0x447f37
mov dword [ebp - 0xb4], 0
cmp byte [ebx + 0x2d0], 0
je 0x447e25
cmp byte [ebx + 0x2b8], 0
mov ecx, dword [ebx + 0x10c]
mov dword [ebp - 0xac], ecx
je 0x447ed4
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x447ed4
push eax
push 0x4f0d88
push str.Data
push str.__s__s__s_
lea eax, [ebp - 0xa8]
push 0xa0
push eax
call fcn.004506b0
lea edi, [ebp - 0xa8]
add esp, 0x18
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x447df0
mov eax, dword [ebx + 0x190]
sub edi, ecx
test eax, eax
je 0x447e9c
push dword [ebx + 0x11c]
lea ecx, [ebp - 0xa8]
push edi
push ecx
push 0
push ebx
call eax
add esp, 0x14
test eax, eax
je 0x447ece
mov edi, dword [ebp - 0xb4]
mov eax, edi
cdq
add dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
adc dword [esi + 0x2c], edx
cmp eax, dword [ebx + 0x8648]
jne 0x447e5f
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebx + 0x864c]
jne 0x447e5f
push str.We_are_completely_uploaded_and_fine_n
push ebx
mov byte [esi + 0xac], 1
call fcn.00443730
add esp, 8
mov ecx, dword [ebx + 0x108]
mov eax, dword [ebp - 0xb4]
cmp ecx, eax
je 0x447efd
sub ecx, eax
add dword [ebx + 0x10c], eax
mov dword [ebx + 0x108], ecx
jmp 0x447f23
mov eax, 0x37
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x118]
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
push 1
push 2
push 0x4eebac
call esi
push dword [ebx + 0x118]
lea eax, [ebp - 0xa8]
push 1
push edi
push eax
call esi
mov esi, dword [ebp - 0xb8]
add esp, 0x20
mov ecx, dword [ebp - 0xac]
mov eax, dword [ebx + 0x190]
mov edi, dword [ebp - 0xb4]
test eax, eax
je 0x447e2b
push dword [ebx + 0x11c]
push edi
push ecx
push 4
push ebx
call eax
add esp, 0x14
jmp 0x447e2b
mov eax, dword [esi + 0xa0]
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x108], 0
cmp byte [esi + 0xac], 0
je 0x447f23
and dword [esi + 0xa8], 0xfffffffd
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x438], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x43c], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret