Function at 0x40e280
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x24
mov eax, dword [0x42a930]
xor eax, esp
mov dword [esp + 0x20], eax
movzx eax, word [0x4375f0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
sub eax, ebx
push edi
je 0x40e4a2
sub eax, 2
je 0x40e331
sub eax, 5
jne 0x40e8d1
movzx eax, word [0x43761c]
cmp eax, ebx
je 0x40e2fa
cmp eax, 7
jne 0x40e8d1
add word [0x42bc0c], 0xffff
jne 0x40e8d1
pop edi
pop esi
pop ebp
mov word [0x42bc0c], 0x12c
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4
mov ebp, 1
push ebp
push 0x4492d8
push esi
mov word [0x43761c], 7
mov word [0x42bc0c], bp
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4
movzx eax, word [0x43761c]
sub eax, ebx
je 0x40e3f6
sub eax, 2
jne 0x40e8d1
mov eax, 0xffff
add word [0x42bc0c], ax
jne 0x40e8d1
mov ebp, 1
cmp word [0x44d68c], bp
jne 0x40e370
mov word [0x44d68c], bx
add word [0x433f44], ax
jne 0x40e382
mov word [0x433f44], 4
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push 0x433ed0
push esi
mov word [0x42bc0c], 5
call edi
mov ax, word [0x433ee4]
cmp word [0x4375fc], ax
mov word [0x433f04], ax
je 0x40e3da
cmp ax, bx
je 0x40e3da
mov word [0x4375fc], ax
call fcn.0040e090
movzx ax, byte [0x42bc91]
push ebp
push 0x4492d8
sub ax, 0x30
push esi
mov word [0x433ef4], ax
call edi
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4
push esi
call fcn.0040e1f0
push esi
call fcn.0040e1a0
call fcn.0040e110
push 0x70
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
movzx ecx, ax
push ecx
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongA]
push esi
call fcn.0040e030
mov ebp, 1
cmp eax, ebp
jne 0x40e440
push 0x320
push esi
call fcn.0040e120
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
push ebp
push 0x433ed0
push esi
mov word [0x44d68c], bp
mov word [0x43761c], 2
mov word [0x42bc0c], bp
mov word [0x433f44], 4
mov word [0x433ef4], bx
mov word [0x4375fc], bx
mov word [0x433f04], bx
call edi
push ebp
push 0x4492d8
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4
movzx eax, word [0x43761c]
sub eax, ebx
je 0x40e652
sub eax, 2
je 0x40e511
sub eax, 5
jne 0x40e8d1
push esi
call fcn.00401790
add esp, 4
push esi
call fcn.0040e170
mov ebp, 1
push ebp
push 0x4492d8
push esi
mov word [0x43761c], bx
mov word [0x42bc0c], bp
mov word [0x4375b0], bp
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4
push esi
call fcn.0040e230
push str.Brfaxrx.ini
push 0x1e
lea edx, [esp + 0x18]
push edx
push 0x423618
push str.AutomaticallyPrint
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x42a4f4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40e5b0
cmp word [0x433efc], bx
jne 0x40e5b0
push 0x190
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
movzx ecx, ax
push ecx
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongA]
push esi
call fcn.0040e030
mov ebp, 1
cmp eax, ebp
jne 0x40e591
push 0x314
push esi
call fcn.0040e120
push esi
call fcn.00401790
add esp, 4
push esi
call fcn.0040e170
mov word [0x433efc], bx
mov word [0x437a94], bx
jmp 0x40e609
push 0x190
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
movzx edx, ax
push edx
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongA]
push esi
call fcn.0040e030
mov ebp, 1
cmp eax, ebp
jne 0x40e5ec
push 0x314
push esi
call fcn.0040e120
push esi
call fcn.00401790
add esp, 4
push esi
call fcn.0040e170
mov word [0x433efc], bp
mov word [0x437a94], bp
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
push ebp
push 0x433ed0
push esi
mov word [0x4375b0], bp
mov word [0x43761c], bx
mov word [0x42bc0c], bp
call edi
push ebp
push 0x4492d8
push esi
call edi
pop edi
pop esi
pop ebp
mov word [0x44d68c], bx
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4
cmp word [0x433efc], bx
mov edi, 0x12c
mov ebp, 1
je 0x40e81e
push esi
call fcn.0040e030
cmp eax, ebp
jne 0x40e77e
add word [0x4375b0], 0xffff
cmp dword [0x4483d0], ebx
je 0x40e697
mov dword [0x4483d0], ebx
mov word [0x4375b0], bx
jmp 0x40e6a4
cmp word [0x4375b0], bx
jne 0x40e732
push 0x334
push esi
call fcn.0040e120
push esi
mov word [0x4375b0], di
call fcn.0040e270
test eax, eax
jne 0x40e732
push 0x190
push 0xfffffffffffffffa
push esi
mov word [0x433efc], bx
mov word [0x42bc0c], di
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
movzx eax, ax
push eax
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongA]
push 0x314
push esi
call fcn.0040e120
push esi
call fcn.0040e030
test eax, eax
jne 0x40e8d1
mov word [0x42bc0c], bp
push ebp
push 0x4492d8
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4
mov ax, word [0x42bc0c]
cmp ax, 5
jbe 0x40e742
mov ax, 5
add ax, 0xffff
mov word [0x42bc0c], ax
jne 0x40e8d1
sub bp, word [0x437a94]
pop edi
pop esi
mov word [0x437a94], bp
pop ebp
mov word [0x42bc0c], 5
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4
cmp word [0x433efc], bx
je 0x40e81e
mov ecx, 0xffff
add word [0x4375b0], cx
cmp dword [0x4483d0], ebx
je 0x40e7a7
mov dword [0x4483d0], ebx
jmp 0x40e7b0
cmp word [0x4375b0], bx
jne 0x40e823
push esi
mov word [0x4375b0], di
call fcn.0040e270
test eax, eax
jne 0x40e823
push 0x190
push 0xfffffffffffffffa
push esi
mov word [0x433efc], bx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
movzx ecx, ax
push ecx
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongA]
push 0x314
push esi
call fcn.0040e120
push ebp
push 0x4492d8
push esi
mov word [0x42bc0c], bp
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4
mov ecx, 0xffff
add word [0x42bc0c], cx
jne 0x40e8d1
add word [0x4375b0], cx
cmp dword [0x4483d0], ebx
je 0x40e847
mov dword [0x4483d0], ebx
jmp 0x40e850
cmp word [0x4375b0], bx
jne 0x40e8ca
push esi
mov word [0x4375b0], di
call fcn.0040e270
cmp eax, ebp
jne 0x40e8ca
push 0x73
push 0xfffffffffffffffa
push esi
mov word [0x433efc], bp
mov word [0x42bc0c], di
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
movzx edx, ax
push edx
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongA]
push esi
mov word [0x42bc0c], bp
call fcn.0040e030
cmp eax, ebp
jne 0x40e710
push 0x334
push esi
call fcn.0040e120
pop edi
pop esi
mov word [0x437a94], bp
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4
mov word [0x42bc0c], di
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041355c
add esp, 0x24
ret 4