Function at 0x4012d0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
and esp, 0xfffffff0
push ebp
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcdc
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], ecx
add ecx, 8
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
push edi
mov dword [esp], 4
call fcn.0040c522
pop ecx
mov edx, dword [ebp - 0x20]
test eax, eax
je 0x401331
mov dword [eax], edx
jmp 0x401333
xor eax, eax
mov dword [ebp - 4], 1
mov dword [edx], eax
xor eax, eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
pxor xmm0, xmm0
mov edx, dword [ebp - 0x44]
mov dword [edx], eax
mov dword [edx + 4], eax
mov eax, 0x400
movaps xmmword [ebp + eax - 0x4a8], xmm0
movaps xmmword [ebp + eax - 0x4b8], xmm0
movaps xmmword [ebp + eax - 0x4c8], xmm0
movaps xmmword [ebp + eax - 0x4d8], xmm0
movaps xmmword [ebp + eax - 0x4e8], xmm0
movaps xmmword [ebp + eax - 0x4f8], xmm0
movaps xmmword [ebp + eax - 0x508], xmm0
movaps xmmword [ebp + eax - 0x518], xmm0
sub eax, 0x80
jne 0x401358
lea eax, [ebp - 0x498]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x498]
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x6c4]
lea esi, [ebp - 0x8c4]
add esp, 0xffffffdc
mov dword [esp], eax
mov dword [esp + 8], 3
mov eax, 0x100
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
lea edi, [ebp - 0xac4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call fcn.0040c978
add esp, 0x24
lea eax, [ebp - 0xccc]
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x6c4]
add esp, 0xffffffe8
xor esi, esi
mov dword [esp], eax
mov dword [esp + 4], 0x104
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call fcn.0040cb98
mov dword [ebp - 4], 2
mov dword [ebp - 0x74], 7
lea edx, [ebp - 0xccc]
xor eax, eax
mov dword [ebp - 0x78], eax
push edx
mov word [ebp - 0x88], ax
call fcn.0040ccbc
add esp, 0x1c
mov edi, eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
lea eax, [ebp - 0xccc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
lea edx, [ebp - 0x88]
cmovae edx, dword [ebp - 0x88]
cmp eax, edx
jae 0x4019a1
xor eax, eax
test eax, eax
jne 0x4014cd
mov dword [ebp - 0x68], edi
cmp edi, 0x7ffffffe
jbe 0x4014ad
call fcn.0040c10d
mov ecx, dword [ebp - 0x74]
cmp ecx, edi
jb 0x4016af
test edi, edi
je 0x401692
mov eax, dword [ebp - 0x68]
test eax, eax
ja 0x401638
jmp 0x401557
lea eax, [ebp - 0x88]
lea esi, [ebp - 0x8c]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], esi
lea esi, [ebp - 0xccc]
cmp ecx, 8
cmovae eax, dword [ebp - 0x88]
sub esi, eax
sar esi, 1
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x50], esi
cmp eax, esi
jb 0x40150b
mov edx, eax
sub edx, esi
cmp edi, edx
cmovb edx, edi
mov dword [ebp - 0x70], edx
jmp 0x401522
call fcn.0040c259
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp - 0x50]
mov edx, eax
sub edx, esi
cmp edi, edx
cmovb edx, edi
mov dword [ebp - 0x70], edx
add esi, edx
cmp eax, esi
jae 0x401530
call fcn.0040c259
mov eax, dword [ebp - 0x78]
mov edx, eax
sub edx, esi
mov edi, 0xffffffff
cmp edx, 0xffffffff
cmovb edi, edx
test edi, edi
ja 0x40191d
mov esi, dword [ebp - 0x50]
cmp eax, esi
cmovb esi, eax
test esi, esi
ja 0x4018be
push str.BonDriver_PT1_ST.ini
lea ecx, [ebp - 0x8c]
call fcn.00401ab0
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x88]
cmp eax, 8
cmovae edx, dword [ebp - 0x88]
push edx
push 0
push str.UseLNB
push 0x41b288
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x88]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x74]
cmp eax, 8
cmovae ecx, dword [ebp - 0x88]
push ecx
push 8
push str.DMABuff
push 0x41b288
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x44]
test eax, eax
jne 0x4015c9
mov dword [ecx + 0x24], 8
jmp 0x4015cc
mov dword [ecx + 0x24], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x74]
cmp edx, 8
jae 0x4018aa
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x74], 7
xor edx, edx
mov dword [ebp - 0x78], edx
mov eax, ecx
mov word [ebp - 0x1c], dx
mov word [ebp - 0x88], dx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, dword [ebp - 0x38]
mov edx, dword [edi + 0x18]
cmp edx, 8
jb 0x401648
mov ecx, dword [edi + 4]
jmp 0x40164b
lea ecx, [edi + 4]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4bc], eax
lea esi, [eax + eax]
add edx, edx
push esi
push dword [ebp - 0x30]
push edx
push ecx
call fcn.0040ccd6
add esp, 0x10
mov eax, dword [ebp - 0x4bc]
mov edx, dword [edi + 0x18]
mov dword [edi + 0x14], eax
cmp edx, 8
jb 0x40167d
mov edi, dword [edi + 4]
jmp 0x401680
add edi, 4
xor eax, eax
mov word [ebp - 0x90], ax
mov word [edi + esi], ax
jmp 0x401557
lea edx, [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x78], eax
cmp ecx, 8
cmovae edx, dword [ebp - 0x88]
mov word [edx], ax
jmp 0x4014bd
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x4b0], edi
mov esi, edi
lea eax, [ebp - 0x8c]
or esi, 7
mov dword [ebp - 0x4b8], eax
mov dword [ebp - 0x4a8], edx
mov dword [ebp - 0x4c4], esi
cmp esi, 0x7ffffffe
jbe 0x4016e7
mov dword [ebp - 0x4c4], edi
mov esi, edi
jmp 0x4016fc
mov edi, ecx
shr edi, 1
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
cmp edi, edx
ja 0x40188b
mov dword [ebp - 4], 3
mov dword [ebp - 0x4c0], 0
inc esi
jne 0x401714
xor esi, esi
jmp 0x401759
xor edx, edx
mov eax, 0xffffffff
div esi
cmp eax, 2
jae 0x401759
mov dword [ebp - 0xcd8], 0
lea eax, [ebp - 0xcd8]
push eax
lea ecx, [ebp - 0xce4]
call fcn.0040cd64
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
lea eax, [ebp - 0xce4]
push 0x41f2d8
push eax
call fcn.0040ce75
push edi
add esi, esi
mov dword [esp], esi
call fcn.0040c522
pop ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 4], 2
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x4a8]
test edi, edi
ja 0x401852
mov esi, dword [ebp - 0x4b8]
mov eax, dword [esi + 0x18]
mov edx, esi
cmp eax, 8
jae 0x40182a
mov dword [edx + 0x18], 7
mov dword [edx + 0x14], 0
mov ecx, dword [ebp - 0x4c0]
xor eax, eax
mov word [ebp - 0x98], ax
mov word [ebp - 0x94], ax
mov word [edx + 4], ax
mov edx, dword [ebp - 0x4c4]
mov dword [esi + 4], ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x14], edi
add esi, 4
cmp edx, 8
cmovae esi, ecx
mov word [esi + edi*2], ax
jmp 0x4014bd
push dword [esi + 4]
mov dword [ebp - 0xce8], edx
call fcn.0040c587
mov edx, dword [ebp - 0xce8]
add esp, 4
mov esi, dword [ebp - 0x4b8]
mov edi, dword [ebp - 0x4a8]
jmp 0x40179e
mov esi, dword [ebp - 0x4b8]
mov eax, dword [esi + 0x18]
cmp eax, 8
jb 0x401865
mov eax, dword [esi + 4]
jmp 0x401868
lea eax, [esi + 4]
mov edx, dword [ebp - 0x4c4]
lea edx, [edx + edx + 2]
lea ecx, [edi + edi]
push ecx
push eax
push edx
push dword [ebp - 0x4c0]
call fcn.0040ccd6
add esp, 0x10
jmp 0x401790
mov eax, edi
neg eax
add eax, 0x7ffffffe
cmp ecx, eax
ja 0x4016fc
lea esi, [ecx + edi]
mov dword [ebp - 0x4c4], esi
jmp 0x4016fc
push dword [ebp - 0x88]
call fcn.0040c587
pop ecx
mov ecx, dword [ebp - 0x44]
jmp 0x4015df
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x4018ce
mov ecx, dword [ebp - 0x88]
jmp 0x4018d4
lea ecx, [ebp - 0x88]
add esp, 0xfffffff0
mov dword [esp], ecx
add edx, edx
sub eax, esi
add eax, eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
lea edx, [ecx + esi*2]
mov dword [esp + 8], edx
call fcn.0040cec1
add esp, 0x10
mov ecx, dword [ebp - 0x78]
lea edx, [ebp - 0x88]
sub ecx, esi
mov esi, dword [ebp - 0x74]
cmp esi, 8
cmovae edx, dword [ebp - 0x88]
mov dword [ebp - 0x78], ecx
xor eax, eax
mov word [edx + ecx*2], ax
jmp 0x401557
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xcd4], eax
cmp eax, 8
jb 0x401933
mov ecx, dword [ebp - 0x88]
jmp 0x401939
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xcd0], edx
lea eax, [esi + esi]
add esp, 0xfffffff0
lea edx, [ecx + esi*2]
mov dword [esp], edx
mov edx, dword [ebp - 0xcd4]
sub edx, esi
add edx, edx
lea esi, [eax + edi*2]
mov dword [esp + 4], edx
add esi, ecx
mov ecx, dword [ebp - 0xcd0]
sub ecx, edi
add ecx, ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
call fcn.0040cec1
add esp, 0x10
mov ecx, dword [ebp - 0x78]
lea edx, [ebp - 0x88]
sub ecx, edi
mov edi, dword [ebp - 0x74]
cmp edi, 8
cmovae edx, dword [ebp - 0x88]
mov dword [ebp - 0x78], ecx
xor eax, eax
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x78]
jmp 0x401547
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x88]
cmp ecx, 8
cmovae eax, dword [ebp - 0x88]
lea esi, [eax + edx*2]
lea eax, [ebp - 0xccc]
cmp esi, eax
jbe 0x401494
mov eax, 1
jmp 0x401496