Function at 0x402450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5ec
mov eax, dword [0x46ad0c]
push ebx
push esi
push edi
mov dword [esp + 0x5f4], eax
push 0x12c
lea eax, [esp + 0x28c]
push eax
push 0
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x288]
push 0x5c
push ecx
call fcn.0044b7e0
add esp, 8
mov byte [eax], 0
xor eax, eax
jmp 0x4024a0
mov cl, byte [esp + eax + 0x288]
mov byte [esp + eax + 0x3b8], cl
inc eax
test cl, cl
jne 0x4024a0
lea edi, [esp + 0x3b8]
dec edi
jmp 0x4024c0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4024c0
mov edx, dword [str.wnwb.ini]
mov eax, dword [0x45d3c0]
mov cx, word [0x45d3c4]
mov dword [edi], edx
lea edx, [esp + 0x3b8]
push edx
push 0x1c9407
mov dword [edi + 4], eax
push str.select_table
mov word [edi + 8], cx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str.Option
call edi
mov esi, eax
lea eax, [esp + 0x3b8]
push eax
push 0x1c9407
push str.Code
push str.Option
call edi
cmp esi, 0x1c9407
je 0x402a2a
cmp eax, 0x1c9407
je 0x402a2a
lea ecx, [eax + eax*4]
lea edx, [esi + ecx*8]
mov ebx, dword [edx*4 + 0x46a208]
test ebx, ebx
je 0x4027de
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402550
sub eax, edx
mov dword [esp + 0x10], eax
je 0x4027de
mov byte [esp + 0x158], cl
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0x159]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
nop
mov cl, byte [esp + eax + 0x288]
mov byte [esp + eax + 0x158], cl
inc eax
test cl, cl
jne 0x402580
lea edi, [esp + 0x158]
dec edi
jmp 0x4025a0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4025a0
mov ax, word [0x45d398]
mov word [edi], ax
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4025b5
lea edi, [esp + 0x158]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4025c6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xc]
jne 0x402600
lea ecx, [esp + 0x158]
push ecx
mov ecx, esi
call fcn.004015b0
test eax, eax
jne 0x4026d3
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0x4a
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
jmp 0x402620
mov cl, byte [esp + eax + 0x288]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x402620
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402635
mov dx, word [0x45d398]
mov eax, ebx
mov word [edi], dx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402650
sub eax, edx
add eax, 0xfffffffd
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.0044c190
lea edi, [esp + 0x34]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402670
mov ecx, dword [0x45d330]
lea edx, [esp + 0x28]
mov dword [edi], ecx
push edx
mov ecx, esi
call fcn.004015b0
test eax, eax
je 0x4026a6
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.004015e0
jmp 0x4026d3
lea edx, [esp + 0x158]
push edx
mov ecx, esi
call fcn.004015b0
test eax, eax
jne 0x4026d3
cmp dword [esi], 0
je 0x4026d3
push 0
mov dword [esi], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, esi
call fcn.00401880
xor eax, eax
jmp 0x4026e0
mov cl, byte [esp + eax + 0x288]
mov byte [esp + eax + 0x4c0], cl
inc eax
test cl, cl
jne 0x4026e0
lea edi, [esp + 0x4c0]
dec edi
jmp 0x402700
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402700
mov eax, dword [str.wnwb.mb]
mov ecx, dword [0x45d390]
mov dl, byte [0x45d394]
mov dword [edi], eax
mov dword [edi + 4], ecx
lea eax, [esp + 0x4c0]
push eax
mov ecx, esi
mov byte [edi + 8], dl
call fcn.004015b0
test eax, eax
jne 0x4027de
mov byte [esp + 0x28], al
mov ecx, 0x4a
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x288]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x402750
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402765
mov cx, word [0x45d398]
mov eax, ebx
mov word [edi], cx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402780
sub eax, edx
add eax, 0xfffffffd
push eax
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.0044c190
lea edi, [esp + 0x34]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4027a0
mov eax, dword [0x45d330]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [edi], eax
call fcn.004015b0
test eax, eax
je 0x4027de
mov ecx, esi
call fcn.00401830
test eax, eax
je 0x4027de
lea edx, [esp + 0x4c0]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00401f10
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x3b8]
push ecx
push 0x1c9407
push str.Fancha_Table
push str.Option
call edi
lea edx, [esp + 0x3b8]
push edx
push 0x1c9407
push str.Code
push str.Option
mov esi, eax
call edi
cmp esi, 0x1c9407
mov edi, eax
je 0x402a2a
cmp edi, 0x1c9407
je 0x402a2a
lea eax, [esp + 0x3b8]
push eax
push 0x14
lea ecx, [esp + 0x1c]
push ecx
push 0x45d374
push str.cur_win_mb
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
push str.sample.mb
push edx
call fcn.0044f7e9
add esp, 8
test eax, eax
jne 0x402877
mov eax, dword [esp + 0xc]
mov dword [eax + 8], 1
test esi, esi
je 0x402888
lea ecx, [edi + edi*4]
lea edx, [esi + ecx*8]
mov ebx, dword [edx*4 + 0x46a208]
test ebx, ebx
je 0x402a2a
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402895
sub eax, edx
mov dword [esp + 0x10], eax
je 0x402a2a
mov byte [esp + 0x28], cl
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x288]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x4028c0
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4028d5
mov ax, word [0x45d398]
mov word [edi], ax
mov eax, ebx
mov edx, ebx
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4028f0
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402900
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004015b0
test eax, eax
jne 0x402a2a
mov byte [esp + 0x158], al
mov ecx, 0x4a
lea edi, [esp + 0x159]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
jmp 0x402950
mov cl, byte [esp + eax + 0x288]
mov byte [esp + eax + 0x158], cl
inc eax
test cl, cl
jne 0x402950
lea edi, [esp + 0x158]
dec edi
jmp 0x402970
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402970
mov dx, word [0x45d398]
mov eax, ebx
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402987
sub eax, edx
add eax, 0xfffffffd
push eax
lea eax, [esp + 0x15c]
push ebx
push eax
call fcn.0044c190
lea edi, [esp + 0x164]
add esp, 0xc
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4029b0
mov ecx, dword [0x45d330]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x158]
mov dword [edi], ecx
push edx
mov ecx, esi
call fcn.004015b0
test eax, eax
je 0x402a00
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x15c]
push ecx
mov ecx, esi
call fcn.004015e0
mov ecx, dword [esp + 0x5f4]
call fcn.0044b7c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.004015b0
test eax, eax
jne 0x402a2a
cmp dword [esi], 0
je 0x402a2a
push 0
mov dword [esi], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, esi
call fcn.00401880
mov ecx, dword [esp + 0x5f4]
call fcn.0044b7c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4