Function at 0x42d6a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1f4
mov eax, dword [0x54e864]
xor eax, esp
mov dword [esp + 0x1f0], eax
mov eax, dword [esp + 0x1fc]
push ebx
mov ebx, dword [esp + 0x208]
push ebp
lea edx, [esp + 0xd4]
push edi
mov edi, dword [esp + 0x20c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42d6d5
lea eax, [esp + 0xd8]
push 0x4e14f4
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov ebp, eax
add esp, 8
mov dword [esp + 0xc], ebp
test ebp, ebp
jne 0x42d73e
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x14]
push str.Error_opening_file__s
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push ebp
push ebp
lea eax, [esp + 0x18]
push eax
call sub.mfc100.dll_Ordinal_1982
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.004c6212
add esp, 0x1f4
ret
push esi
mov esi, dword [esp + 0x208]
mov eax, esi
dec eax
je 0x42d7f4
dec eax
je 0x42d76e
push ebp
call dword [sym.imp.MSVCR100.dll_fclose]
push esi
push str.Test__d_not_recognized.
push 0
call fcn.0042a000
add esp, 0x10
jmp 0x42d8de
push edi
mov edi, dword [sym.imp.MSVCR100.dll_atoi]
call edi
push ebx
mov esi, eax
call edi
mov edi, eax
push edi
push esi
push str.Statistical_test_of_generation_of__d_randoms_of__d
push 0
call fcn.0042a000
add esp, 0x18
test esi, esi
jle 0x42d7e2
mov ebp, dword [sym.imp.MSVCR100.dll_sprintf]
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
nop
push edi
call fcn.00469e40
push eax
lea ecx, [esp + 0x1c]
push 0x4e1a1c
push ecx
call ebp
lea eax, [esp + 0x24]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d7c0
sub eax, edx
mov edx, dword [esp + 0x10]
push edx
push 1
push eax
lea eax, [esp + 0x20]
push eax
call ebx
add esp, 0x10
dec esi
jne 0x42d7a0
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0xdc]
push ecx
push str.Test_completed._Generated_file__s_with_the_results
jmp 0x42d8bc
push edi
call dword [sym.imp.MSVCR100.dll_atoi]
mov esi, eax
push esi
push str.Statistical_test_of_generation_of__d_games
push 0
call fcn.0042a000
add esp, 0x10
test esi, esi
jle 0x42d8af
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
mov dword [esp + 0x10], esi
nop
lea edx, [esp + 0x1a4]
push edx
call fcn.00469e80
add esp, 4
xor esi, esi
movsx eax, byte [esp + esi + 0x1a4]
push eax
lea ecx, [esp + 0x18]
push 0x4e17bc
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea edi, [esp + 0x20]
add esp, 0xc
dec edi
cmp esi, 0x59
jge 0x42d870
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42d858
mov dx, word [0x4e1834]
mov word [edi], dx
jmp 0x42d881
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42d870
mov ax, word [0x4e18dc]
mov word [edi], ax
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d888
push ebp
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x20]
push ecx
call ebx
inc esi
add esp, 0x10
cmp esi, 0x5a
jl 0x42d832
dec dword [esp + 0x10]
jne 0x42d820
lea edx, [esp + 0xdc]
push edx
push 0x4e19b4
push 0
call fcn.0042a000
add esp, 0xc
push ebp
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push 0
push 0
push str.Test_completed
call sub.mfc100.dll_Ordinal_1982
mov ecx, dword [esp + 0x200]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c6212
add esp, 0x1f4
ret