Function at 0x409550
Capabilities:
Delete file
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x54b4
call fcn.00447a30
mov eax, dword [0x45e1ac]
xor eax, esp
mov dword [esp + 0x54b0], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x14
push 0x461044
push 1
push esi
call edi
push 0x14
push 0x461090
push 1
push esi
call edi
mov eax, dword [ebp + 0x14]
push eax
mov eax, esi
call fcn.004094d0
add esp, 4
test eax, eax
je 0x40986e
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..OiddInfo.ini
push 0xff
lea ecx, [esp + 0x53c0]
push ecx
push 0x45814c
push str.GAME_ID
push str.OIDD
call esi
mov ecx, str.A240307002
lea eax, [esp + 0x53b8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40960a
test dl, dl
je 0x409604
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40960a
add eax, 2
add ecx, 2
test dl, dl
jne 0x4095e8
xor ebx, ebx
xor eax, eax
jmp 0x409611
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
cmp eax, ebx
jne 0x40986e
mov eax, dword [0x458558]
mov edx, dword [str.A240307002]
mov cx, word [0x45855c]
push str..OiddInfo.ini
push 8
mov dword [0x4610cc], eax
lea eax, [esp + 0x53c0]
push eax
push 0x45814c
mov dword [0x4610c8], edx
mov dl, byte [0x45855e]
push str.COM_PORT
push str.OIDD
mov word [0x4610d0], cx
mov byte [0x4610d2], dl
call esi
xor eax, eax
jmp 0x409670
mov cl, byte [esp + eax + 0x53b8]
mov byte [eax + 0x461bd4], cl
inc eax
test cl, cl
jne 0x409670
push 0x38
call fcn.0043b07e
add esp, 4
cmp eax, ebx
je 0x40969a
mov dword [eax], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], ebx
jmp 0x40969c
xor eax, eax
mov ecx, 0x461bd4
mov dword [0x46108c], eax
call fcn.00403ca0
push 0x1abc
mov dword [esp + 0x14], eax
call fcn.0043b07e
add esp, 4
cmp eax, ebx
je 0x4096c9
mov esi, eax
call fcn.00402870
jmp 0x4096cb
xor eax, eax
mov dword [0x461078], eax
mov eax, 0x4610c8
call fcn.00402d30
xor eax, eax
mov dword [0x463758], eax
mov dword [0x46375c], eax
mov dword [0x463760], eax
mov dword [0x463764], eax
mov byte [0x463768], al
mov eax, dword [0x461078]
mov ecx, dword [eax + 0xb]
mov dword [0x463758], ecx
mov edx, dword [eax + 0xf]
mov dword [0x46375c], edx
mov ecx, dword [eax + 0x13]
mov dword [0x463760], ecx
mov edx, dword [eax + 0x17]
mov dword [0x463764], edx
mov al, byte [eax + 0x1b]
xor edx, edx
mov byte [0x463768], al
mov dword [0x46376c], edx
xor eax, eax
test al, 7
jne 0x40974c
cmp eax, ebx
je 0x40974c
mov cl, byte [eax + 0x463758]
test cl, cl
je 0x409755
movzx ecx, cl
shr ecx, 1
imul edx, ecx
jmp 0x409755
movzx ecx, byte [eax + 0x463758]
add edx, ecx
inc eax
cmp eax, 0x11
jl 0x409730
mov dword [0x46376c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0043bdde
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
add esp, 4
call edi
push eax
call fcn.0043bdde
add esp, 4
push ebx
call fcn.0043c15d
add esp, 4
push eax
call fcn.0043bdde
add esp, 4
push 0x40
call fcn.0043b07e
add esp, 4
cmp eax, ebx
je 0x4097a8
call fcn.004078b0
jmp 0x4097aa
xor eax, eax
push 0x3ac
mov dword [0x4610c4], eax
call fcn.0043b07e
add esp, 4
cmp eax, ebx
je 0x4097c7
call fcn.004278d0
jmp 0x4097c9
xor eax, eax
mov dword [0x461000], eax
call fcn.00427b60
call fcn.00427ee0
mov eax, dword [0x461000]
dec dword [eax + 0x3a8]
cmp dword [eax + 0x3a8], ebx
jle 0x40986e
mov edx, dword [0x46376c]
push edx
call fcn.0043bdde
mov eax, dword [0x46378c]
add esp, 4
cmp eax, ebx
je 0x409816
push eax
call fcn.0043a7f1
add esp, 4
mov dword [0x46378c], ebx
push 0x24
call fcn.0043b07e
add esp, 4
push eax
mov dword [0x46378c], eax
call fcn.0043c0db
mov eax, dword [0x46378c]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
imul ecx, ecx, 0x64
lea ecx, [ecx + edx + 0x2e631]
imul ecx, ecx, 0x64
add ecx, dword [eax + 0xc]
add esp, 4
cmp ecx, 0x135289d
jl 0x409887
call fcn.0043bdf0
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0x14
jg 0x409887
push str.Code_ssc.m
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54b0]
xor ecx, esp
call fcn.0043a7e2
mov esp, ebp
pop ebp
ret 0x10
push 0x45812c
push str.CodeSSC.M
mov dword [0x461f04], ebx
call fcn.0043aab8
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40986e
push esi
push 1
lea edx, [esp + 0x38]
push 0x4000
push edx
call fcn.0043ad6f
push esi
call fcn.0043afe7
add esp, 0x14
lea ecx, [esp + 0x4030]
mov dword [esp + 0xc], ebx
call fcn.0043a230
xor esi, esi
cmp esi, 0x3f5
jne 0x409903
mov ecx, dword [esp + 0x1004]
mov edx, dword [0x46376c]
lea eax, [esp + 0xc]
push eax
push ecx
push edx
lea ecx, [esp + 0x403c]
call fcn.00439da0
mov dword [esp + 0x1004], eax
jmp 0x40992a
cmp esi, 0x3f4
je 0x40992a
mov ecx, dword [esp + esi*4 + 0x30]
lea eax, [esp + 0xc]
push eax
push ecx
push 0x1eb25f4
lea ecx, [esp + 0x403c]
call fcn.00439da0
mov dword [esp + esi*4 + 0x30], eax
inc esi
cmp esi, 0x1000
jl 0x4098d2
movzx ecx, word [esp + 0x4a8]
movzx edx, word [esp + 0x1e8]
movzx eax, word [esp + 0x318]
mov word [0x45f8dc], cx
movzx ecx, word [esp + 0x2180]
mov word [str.123456789], dx
movzx edx, word [esp + 0x11c8]
mov word [0x45f8da], ax
movzx eax, word [esp + 0x1270]
mov word [0x45f8e2], cx
movzx ecx, word [esp + 0x32e8]
mov word [0x45f8de], dx
movzx edx, word [esp + 0x22f8]
mov word [0x45f8e0], ax
movzx eax, word [esp + 0x315c]
mov word [0x45f8e8], cx
lea ecx, [esp + 0x4030]
mov word [0x45f8e4], dx
mov word [0x45f8e6], ax
call fcn.00438730
cmp dword [esp + 0x1000], 0x134d81f
je 0x409a09
cmp dword [esp + 0x1004], 0xbe44872
je 0x409a09
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x4030]
call fcn.0043a390
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54b0]
xor ecx, esp
call fcn.0043a7e2
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x46378c]
mov eax, dword [ecx + 0x10]
cdq
mov esi, 0xa
idiv esi
imul edx, edx, 0x64
add edx, dword [ecx + 0xc]
imul edx, edx, 0x64
add edx, dword [ecx + 8]
imul edx, edx, 0x64
add edx, dword [ecx + 4]
imul edx, edx, 0x64
add edx, dword [ecx]
mov dword [0x463ab0], edx
call fcn.00407bb0
push ebx
call dword [sym.imp.USER32.dll_ShowCursor]
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
call edi
push str..OiddInfo.ini
push 8
lea edx, [esp + 0x53c0]
push edx
push 0x45814c
push str.COM_PORT
push str.GAME
mov dword [0x463adc], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x53b8]
mov byte [eax + 0x461bd4], cl
inc eax
test cl, cl
jne 0x409a80
push 0x461bd7
call fcn.0043b925
add esp, 4
and eax, 0x80000001
jns 0x409aab
dec eax
or eax, 0xfffffffe
inc eax
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [0x463af8], ebx
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
mov dword [0x461f08], eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x409b08
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call ebx
test eax, eax
je 0x409b7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x409ac8
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
cmp dword [0x464338], esi
jae 0x409ac8
call fcn.004086b0
mov ecx, dword [0x4610c4]
cmp word [ecx + 0x26], 5
jne 0x409b49
cmp dword [esp + 0x10], 0
je 0x409b38
call fcn.004030c0
jmp 0x409b49
mov dword [0x461ce4], 0xca
mov byte [0x463744], 1
cmp dword [0x4602e4], 0
je 0x409b57
call fcn.00408fb0
mov edx, dword [0x4610c4]
cmp word [edx + 0x26], 6
jl 0x409b69
call fcn.00408650
call fcn.00409d00
add esi, 0x1c
mov dword [0x464338], esi
jmp 0x409ac8
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x4030]
call fcn.0043a390
mov ecx, dword [esp + 0x54bc]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0043a7e2
mov esp, ebp
pop ebp
ret 0x10