Function at 0x40d920
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x42a930]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push esi
push str.Brfaxrx.ini
push 0x400
push 0x437688
push 0x423618
push str.RxFileDir
push str.BTXFILES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [0x437688], 0x30
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x40d97e
cmp eax, 1
jle 0x40d97e
cmp byte [eax + 0x437687], 0x5c
jmp 0x40d9a4
push 0x433f58
push 0x437688
call ebp
mov eax, 0x433f58
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d992
sub eax, edx
cmp byte [eax + 0x433f57], 0x5c
je 0x40d9b2
push 0x423e3c
push 0x437688
call esi
push str.Brfaxrx.ini
push 1
push str.NextRxFileNumber
push str.BTXFILES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
push 0x437688
lea eax, [esp + 0x20]
push eax
call ebp
cmp ebx, 1
jl 0x40d9e4
cmp ebx, 0xfff
jle 0x40d9e9
mov ebx, 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [esp + 0x14], ebx
mov dword [0x44aee4], 0
mov edi, edi
lea ecx, [esp + 0x20]
push ecx
push 0x437688
call ebp
push str.brfrx
push 0x437688
call esi
mov eax, ebx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
push eax
call fcn.0040d900
mov ecx, ebx
and ecx, 0x800000ff
mov byte [esp + 0x10], al
jns 0x40da42
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
push eax
call fcn.0040d900
and ecx, 0x8000000f
mov byte [esp + 0x11], al
jns 0x40da64
dec ecx
or ecx, 0xfffffff0
inc ecx
push ecx
call fcn.0040d900
lea edx, [esp + 0x10]
push edx
push 0x437688
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0
call esi
push str..ti_
push 0x437688
call esi
push 0x4000
push 0x44aef0
push 0x437688
call edi
add ebx, 1
cmp ebx, 0xfff
mov dword [0x44aee4], eax
jle 0x40dab1
mov ebx, 1
cmp eax, 0xffffffff
jne 0x40da00
cmp ebx, dword [esp + 0x14]
je 0x40da00
cmp ebx, 0x3e7
pop edi
jle 0x40db1f
mov eax, 0x10624dd3
imul ebx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov al, cl
imul ecx, ecx, 0x3e8
add al, 0x30
mov byte [esp + 0x14], al
mov eax, ebx
sub eax, ecx
cdq
mov ecx, 0x64
idiv ecx
mov ecx, 0xa
mov byte [esp + 0x18], 0
add al, 0x30
mov byte [esp + 0x15], al
mov eax, edx
cdq
idiv ecx
add al, 0x30
add dl, 0x30
mov byte [esp + 0x16], al
mov byte [esp + 0x17], dl
jmp 0x40dba0
cmp ebx, 0x63
jle 0x40db61
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dl, cl
imul ecx, ecx, 0x64
add dl, 0x30
mov eax, ebx
sub eax, ecx
mov byte [esp + 0x14], dl
cdq
mov ecx, 0xa
idiv ecx
mov byte [esp + 0x17], 0
add al, 0x30
add dl, 0x30
mov byte [esp + 0x15], al
mov byte [esp + 0x16], dl
jmp 0x40dba0
cmp ebx, 9
jle 0x40db94
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, al
mov cl, 0xa
imul cl
add dl, 0x30
sub bl, al
add bl, 0x30
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], 0
jmp 0x40dba0
add bl, 0x30
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], 0
push str.Brfaxrx.ini
lea edx, [esp + 0x18]
push edx
push str.NextRxFileNumber
push str.BTXFILES
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041355c
add esp, 0x414
ret