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.004478a0
mov eax, dword [0x45d1ac]
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 0x460044
push 1
push esi
call edi
push 0x14
push 0x460090
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 0x45714c
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 [0x457558]
mov edx, dword [str.A240307002]
mov cx, word [0x45755c]
push str..OiddInfo.ini
push 8
mov dword [0x4600cc], eax
lea eax, [esp + 0x53c0]
push eax
push 0x45714c
mov dword [0x4600c8], edx
mov dl, byte [0x45755e]
push str.COM_PORT
push str.OIDD
mov word [0x4600d0], cx
mov byte [0x4600d2], dl
call esi
xor eax, eax
jmp 0x409670
mov cl, byte [esp + eax + 0x53b8]
mov byte [eax + 0x460bd4], cl
inc eax
test cl, cl
jne 0x409670
push 0x38
call fcn.0043aeee
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, 0x460bd4
mov dword [0x46008c], eax
call fcn.00403ca0
push 0x1abc
mov dword [esp + 0x14], eax
call fcn.0043aeee
add esp, 4
cmp eax, ebx
je 0x4096c9
mov esi, eax
call fcn.00402870
jmp 0x4096cb
xor eax, eax
mov dword [0x460078], eax
mov eax, 0x4600c8
call fcn.00402d30
xor eax, eax
mov dword [0x462758], eax
mov dword [0x46275c], eax
mov dword [0x462760], eax
mov dword [0x462764], eax
mov byte [0x462768], al
mov eax, dword [0x460078]
mov ecx, dword [eax + 0xb]
mov dword [0x462758], ecx
mov edx, dword [eax + 0xf]
mov dword [0x46275c], edx
mov ecx, dword [eax + 0x13]
mov dword [0x462760], ecx
mov edx, dword [eax + 0x17]
mov dword [0x462764], edx
mov al, byte [eax + 0x1b]
xor edx, edx
mov byte [0x462768], al
mov dword [0x46276c], edx
xor eax, eax
test al, 7
jne 0x40974c
cmp eax, ebx
je 0x40974c
mov cl, byte [eax + 0x462758]
test cl, cl
je 0x409755
movzx ecx, cl
shr ecx, 1
imul edx, ecx
jmp 0x409755
movzx ecx, byte [eax + 0x462758]
add edx, ecx
inc eax
cmp eax, 0x11
jl 0x409730
mov dword [0x46276c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0043bc4e
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
add esp, 4
call edi
push eax
call fcn.0043bc4e
add esp, 4
push ebx
call fcn.0043bfcd
add esp, 4
push eax
call fcn.0043bc4e
add esp, 4
push 0x40
call fcn.0043aeee
add esp, 4
cmp eax, ebx
je 0x4097a8
call fcn.004078b0
jmp 0x4097aa
xor eax, eax
push 0x3ac
mov dword [0x4600c4], eax
call fcn.0043aeee
add esp, 4
cmp eax, ebx
je 0x4097c7
call fcn.00427750
jmp 0x4097c9
xor eax, eax
mov dword [0x460000], eax
call fcn.004279e0
call fcn.00427d60
mov eax, dword [0x460000]
dec dword [eax + 0x3a8]
cmp dword [eax + 0x3a8], ebx
jle 0x40986e
mov edx, dword [0x46276c]
push edx
call fcn.0043bc4e
mov eax, dword [0x46278c]
add esp, 4
cmp eax, ebx
je 0x409816
push eax
call fcn.0043a661
add esp, 4
mov dword [0x46278c], ebx
push 0x24
call fcn.0043aeee
add esp, 4
push eax
mov dword [0x46278c], eax
call fcn.0043bf4b
mov eax, dword [0x46278c]
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, 0x1352839
jl 0x409887
call fcn.0043bc60
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.0043a652
mov esp, ebp
pop ebp
ret 0x10
push 0x45712c
push str.CodeSSC.M
mov dword [0x460f04], ebx
call fcn.0043a928
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.0043abdf
push esi
call fcn.0043ae57
add esp, 0x14
lea ecx, [esp + 0x4030]
mov dword [esp + 0xc], ebx
call fcn.0043a0a0
xor esi, esi
cmp esi, 0x3f5
jne 0x409903
mov ecx, dword [esp + 0x1004]
mov edx, dword [0x46276c]
lea eax, [esp + 0xc]
push eax
push ecx
push edx
lea ecx, [esp + 0x403c]
call fcn.00439c10
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.00439c10
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 [0x45e8dc], cx
movzx ecx, word [esp + 0x2180]
mov word [str.123456789], dx
movzx edx, word [esp + 0x11c8]
mov word [0x45e8da], ax
movzx eax, word [esp + 0x1270]
mov word [0x45e8e2], cx
movzx ecx, word [esp + 0x32e8]
mov word [0x45e8de], dx
movzx edx, word [esp + 0x22f8]
mov word [0x45e8e0], ax
movzx eax, word [esp + 0x315c]
mov word [0x45e8e8], cx
lea ecx, [esp + 0x4030]
mov word [0x45e8e4], dx
mov word [0x45e8e6], ax
call fcn.004385a0
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.0043a200
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54b0]
xor ecx, esp
call fcn.0043a652
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x46278c]
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 [0x462ab0], 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 0x45714c
push str.COM_PORT
push str.GAME
mov dword [0x462adc], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x53b8]
mov byte [eax + 0x460bd4], cl
inc eax
test cl, cl
jne 0x409a80
push 0x460bd7
call fcn.0043b795
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 [0x462af8], ebx
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
mov dword [0x460f08], 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 [0x463338], esi
jae 0x409ac8
call fcn.004086b0
mov ecx, dword [0x4600c4]
cmp word [ecx + 0x26], 5
jne 0x409b49
cmp dword [esp + 0x10], 0
je 0x409b38
call fcn.004030c0
jmp 0x409b49
mov dword [0x460ce4], 0xca
mov byte [0x462744], 1
cmp dword [0x45f2e4], 0
je 0x409b57
call fcn.00408fb0
mov edx, dword [0x4600c4]
cmp word [edx + 0x26], 6
jl 0x409b69
call fcn.00408650
call fcn.00409d00
add esi, 0x1c
mov dword [0x463338], esi
jmp 0x409ac8
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x4030]
call fcn.0043a200
mov ecx, dword [esp + 0x54bc]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0043a652
mov esp, ebp
pop ebp
ret 0x10