Function at 0x42d628
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [eax + 0xf2c], 0
jne 0x42d64f
pop edi
mov eax, 0x73
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
add ecx, 0x5c
mov edi, dword [ebx + 0x35d4]
push ecx
mov dword [ebp - 0x474], ecx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [ebp - 0x474]
push edx
mov esi, dword [edi + 0xc0]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp esi, 1
jle 0x42da07
mov ecx, dword [edi + 0x50]
cmp esi, 3
mov dword [ebp - 0x40], ecx
jne 0x42d6a6
mov ecx, dword [ebx + 0x24a8]
sub ecx, dword [ebp - 0x40]
and ecx, dword [ebx + 0x3104]
mov dword [0x47606c], ecx
jmp 0x42d6bb
mov edx, dword [ebx + 0x24a8]
sub edx, dword [0x47606c]
and edx, dword [ebx + 0x3104]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], edi
mov edx, dword [ebx + 0x2b4c]
fld qword [ebx + 0x31e4]
fdivr qword [0x46f314]
fld qword [ebx + 0x31ec]
fdivr qword [0x46f314]
fxch st(1)
mov ecx, dword [ebx + 0x2b04]
mov dword [ebp - 0x34], edx
and ecx, 3
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 0x50]
mov edx, 0x80
fstp qword [ebp - 0x458]
mov edi, dword [ebx + 0x2b48]
cmp ecx, edx
fstp qword [ebp - 0x460]
jge 0x42d715
mov esi, ecx
jmp 0x42d717
mov esi, edx
cmp esi, dword [ebp - 0x40]
jg 0x42da07
mov dword [ebp - 0x38], esi
mov ecx, dword [ebp - 0x3c]
cmp ecx, 1
jne 0x42d7c9
xor edx, edx
test esi, esi
je 0x42d999
fld qword [ebp - 0x458]
fstp xword [ebp - 0xc]
mov ecx, dword [0x47606c]
lea ecx, [ecx + ecx*4]
add ecx, ecx
fld xword [ecx + edi]
fld xword [ebp - 0xc]
fmulp st(1)
fst qword [ebp - 0x450]
fcomp qword [0x46f314]
fnstsw ax
sahf
jb 0x42d772
fld qword [0x46f314]
fstp qword [ebp - 0x450]
fld qword [ebp - 0x450]
fcomp qword [0x46f31c]
fnstsw ax
sahf
ja 0x42d78f
fld qword [0x46f31c]
fstp qword [ebp - 0x450]
fld qword [ebp - 0x450]
fistp dword [ebp - 0x470]
mov ecx, dword [ebp - 0x470]
mov dword [ebp + edx*4 - 0x444], ecx
mov ecx, dword [0x47606c]
inc ecx
and ecx, dword [ebx + 0x3104]
inc edx
cmp edx, esi
mov dword [0x47606c], ecx
jb 0x42d742
jmp 0x42d999
cmp ecx, 2
jne 0x42d86f
xor edx, edx
test esi, esi
je 0x42d999
fld qword [ebp - 0x460]
fstp xword [ebp - 0x18]
mov ecx, dword [0x47606c]
lea ecx, [ecx + ecx*4]
add ecx, ecx
mov eax, dword [ebp - 0x34]
fld xword [ecx + eax]
fld xword [ebp - 0x18]
fmulp st(1)
fst qword [ebp - 0x450]
fcomp qword [0x46f314]
fnstsw ax
sahf
jb 0x42d818
fld qword [0x46f314]
fstp qword [ebp - 0x450]
fld qword [ebp - 0x450]
fcomp qword [0x46f31c]
fnstsw ax
sahf
ja 0x42d835
fld qword [0x46f31c]
fstp qword [ebp - 0x450]
fld qword [ebp - 0x450]
fistp dword [ebp - 0x470]
mov ecx, dword [ebp - 0x470]
mov dword [ebp + edx*4 - 0x444], ecx
mov ecx, dword [0x47606c]
inc ecx
and ecx, dword [ebx + 0x3104]
inc edx
cmp edx, esi
mov dword [0x47606c], ecx
jb 0x42d7e5
jmp 0x42d999
cmp ecx, 3
jne 0x42d98d
mov eax, dword [ebp - 0x38]
add eax, eax
xor edx, edx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x42d999
fld qword [ebp - 0x458]
fld qword [ebp - 0x460]
fxch st(1)
fstp xword [ebp - 0x30]
fstp xword [ebp - 0x24]
mov ecx, dword [0x47606c]
lea ecx, [ecx + ecx*4]
add ecx, ecx
fld xword [ecx + edi]
fld xword [ebp - 0x30]
fmulp st(1)
fst qword [ebp - 0x450]
fcomp qword [0x46f314]
fnstsw ax
sahf
jb 0x42d8ce
fld qword [0x46f314]
fstp qword [ebp - 0x450]
fld qword [ebp - 0x450]
fcomp qword [0x46f31c]
fnstsw ax
sahf
ja 0x42d8eb
fld qword [0x46f31c]
fstp qword [ebp - 0x450]
fld qword [ebp - 0x450]
mov eax, dword [ebp - 0x34]
fistp dword [ebp - 0x470]
mov ecx, dword [ebp - 0x470]
mov dword [ebp + edx*4 - 0x444], ecx
mov ecx, dword [0x47606c]
lea ecx, [ecx + ecx*4]
add ecx, ecx
inc edx
fld xword [ecx + eax]
fld xword [ebp - 0x24]
fmulp st(1)
fst qword [ebp - 0x450]
fcomp qword [0x46f314]
fnstsw ax
sahf
jb 0x42d938
fld qword [0x46f314]
fstp qword [ebp - 0x450]
fld qword [ebp - 0x450]
fcomp qword [0x46f31c]
fnstsw ax
sahf
ja 0x42d955
fld qword [0x46f31c]
fstp qword [ebp - 0x450]
fld qword [ebp - 0x450]
fistp dword [ebp - 0x470]
mov ecx, dword [ebp - 0x470]
mov dword [ebp + edx*4 - 0x444], ecx
mov ecx, dword [0x47606c]
inc ecx
and ecx, dword [ebx + 0x3104]
inc edx
mov dword [0x47606c], ecx
cmp edx, dword [ebp - 0x38]
jb 0x42d89e
jmp 0x42d999
pop edi
mov eax, 0xffffff9d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov edx, dword [ebp - 0x38]
shl edx, 2
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x444]
push edx
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], edx
push dword [ecx + 0xf2c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x42d9d1
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x448]
je 0x42d9dd
pop edi
mov eax, 0x77
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
add dword [edx + 0xf28], ecx
cmp dword [edx + 0x688], 0x578
jne 0x42d9fb
add dword [edx + 0xf04], ecx
sub dword [ebp - 0x40], esi
cmp dword [ebp - 0x40], esi
jge 0x42d720
pop edi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret