Function at 0x403900
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44852b
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x457a00]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457a00]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov eax, dword [esp + 0x184]
xor ebx, ebx
push 0x7f
mov esi, edx
lea edx, [esp + 0x71]
push ebx
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
xor edi, edi
mov byte [esp + 0x78], bl
call fcn.00433570
add esp, 0xc
push 0x7f
lea eax, [esp + 0xf1]
push ebx
push eax
mov byte [esp + 0xf8], bl
call fcn.00433570
xor eax, eax
add esp, 0xc
push str.backup_at_enter_n
mov byte [esp + 0x60], bl
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov word [esp + 0x6d], ax
mov byte [esp + 0x6f], al
mov byte [esp + 0x40], bl
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov word [esp + 0x4d], ax
mov byte [esp + 0x4f], al
mov byte [esp + 0x50], bl
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov word [esp + 0x5d], ax
mov byte [esp + 0x5f], al
xor ebp, ebp
mov byte [esp + 0x1f], bl
call fcn.00401000
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
add esp, 4
sub edx, 1
js 0x403cec
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x24]
push eax
push str.AT_d
lea ecx, [esp + 0x64]
push 0x10
push ecx
call fcn.00430bb0
mov esi, dword [esp + 0x34]
push esi
push str.RAT_d
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.00430bb0
push esi
push str.WAT_d
lea eax, [esp + 0x74]
push 0x10
push eax
call fcn.00430bb0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x30
push 0x45bb50
push 0x80
lea ecx, [esp + 0x74]
push ecx
push 0x45029b
lea edx, [esp + 0x6c]
push edx
push 0x44c940
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x34], ecx
jne 0x403b1c
push 0x45bb50
push 0x80
lea eax, [esp + 0x74]
push eax
push 0x45029b
lea ecx, [esp + 0x4c]
push ecx
push 0x44c940
call esi
mov edx, eax
cmp edx, ebx
mov dword [esp + 0x28], edx
jne 0x403b16
push 0x45bb50
push 0x80
lea edx, [esp + 0x74]
push edx
push 0x45029b
lea eax, [esp + 0x5c]
push eax
push 0x44c940
call esi
mov edi, eax
cmp edi, ebx
je 0x403cec
mov edx, dword [esp + 0x28]
mov byte [esp + edi + 0x6c], bl
cmp edx, ebx
jne 0x403b26
cmp edi, ebx
je 0x403b56
mov byte [esp + 0x1b], bl
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403ae5
sub eax, edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x70]
push ecx
push edx
call fcn.0043dca0
add esp, 0xc
cmp dword [esp + 0x34], ebx
je 0x403c95
lea eax, [esp + 0x5c]
jmp 0x403ca3
mov byte [esp + edx + 0x6c], bl
jmp 0x403ad2
mov edx, dword [esp + 0x28]
mov byte [esp + ecx + 0x6c], bl
jmp 0x403b30
mov ecx, dword [esp + 0x34]
lea ebx, [ebx]
mov al, byte [esp + ebp + 0x6c]
add ebp, 1
cmp al, 0x3d
je 0x403b47
cmp ecx, ebx
mov eax, ecx
jne 0x403b43
mov eax, edx
cmp ebp, eax
jl 0x403b30
cmp ecx, ebx
je 0x403b4f
cmp ebp, ecx
jne 0x403ada
mov byte [esp + 0x1b], 1
jmp 0x403b5c
cmp byte [esp + 0x1b], bl
je 0x403ade
lea ecx, [esp + 0xec]
push 0x80
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x74]
call fcn.0041d2f0
add esp, 8
cmp eax, ebx
je 0x403cc5
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x24]
call fcn.00415050
mov dword [esp + 0x17c], ebx
mov edx, dword [esp + 0x20]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x403bbc
push esi
lea ecx, [esp + 0x24]
call fcn.00414f20
mov edx, dword [esp + 0x20]
lea eax, [esi + 1]
push eax
push edx
call fcn.0043175b
push eax
call fcn.00414df0
add esp, 0xc
cmp esi, ebx
jl 0x403d07
mov eax, dword [esp + 0x20]
cmp esi, dword [eax - 8]
jg 0x403d07
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x20]
mov byte [esi + ecx], bl
mov edx, dword [esp + 0x20]
push str.ATBMCMD
push edx
call fcn.00430890
add esp, 8
test eax, eax
je 0x403c2d
lea eax, [esp + 0xec]
push 0x44ce50
push eax
call fcn.00430890
add esp, 8
cmp eax, ebx
je 0x403c61
add eax, 1
push eax
lea ecx, [esp + 0x70]
push ecx
push str._s__s
jmp 0x403c4f
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x403c3d
cmp ebp, eax
jge 0x403c3d
mov byte [esp + ebp + 0x6b], bl
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x70]
push ecx
push str._s_s
mov edx, dword [esp + 0x28]
push 0x80
push edx
call fcn.00430bb0
add esp, 0x14
mov dword [esp + 0x17c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403b03
cmp dword [esp + 0x28], ebx
lea eax, [esp + 0x3c]
jne 0x403ca3
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
push 0x45bc58
push ecx
push eax
push 0x44c940
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
je 0x403d11
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x28], ebx
mov edx, dword [esp + 0x30]
mov ecx, dword [edx]
add dword [esp + 0x1c], 0x80
mov eax, 1
add dword [esp + 0x2c], eax
add dword [esp + 0x24], eax
sub ecx, eax
cmp dword [esp + 0x2c], ecx
jle 0x403a01
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push str.backup_at_exit_n
mov dword [eax], edx
call fcn.00401000
add esp, 4
mov al, 1
jmp 0x403d50
push 0x80070057
call fcn.00414ed0
push str.backup_at_WritePrivateProfileString_:_n
call fcn.00401000
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
push 0x44c6f8
call fcn.00401000
lea edx, [esp + 0x44]
push edx
push 0x44c6f8
call fcn.00401000
lea eax, [esp + 0x5c]
push eax
push 0x44c6f8
call fcn.00401000
add esp, 0x18
xor al, al
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0042fb8f
add esp, 0x16c
ret