Function at 0x10001b80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp byte [esp + 0x48], 0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
jne 0x10001bce
movzx esi, byte [esp + 0x4c]
push str..BrDctF2.ini
push esi
push str.LoopCount
push str.LoopLimit
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, esi
je 0x10001bce
cmp eax, edi
mov byte [esp + 0x4c], al
jg 0x10001bce
mov byte [esp + 0x4c], 3
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.BrDctF2L.dll
call esi
cmp eax, edi
mov dword [esp + 0x24], eax
jne 0x10001c11
mov esi, dword [0x1000ef80]
mov ebx, dword [esp + 0x40]
push edi
push 0xf
mov ecx, 1
call fcn.10001030
add esp, 8
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword [0x1000ef84], 0xf
pop ebx
add esp, 0x28
ret
mov ebx, dword [0x1000ef80]
push 0x14
mov dword [esp + 0x24], ebx
call fcn.1000220a
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], ebp
jne 0x10001c54
mov ebp, dword [esp + 0x40]
push eax
mov esi, ebx
push 4
lea ecx, [eax + 1]
mov ebx, ebp
call fcn.10001030
add esp, 8
mov dword [0x1000ef84], 4
jmp 0x10001ede
push str.BrDctF2S.dll
call esi
mov esi, eax
test esi, esi
mov dword [esp + 0x30], esi
jne 0x10001c8a
mov ebp, dword [esp + 0x40]
push eax
mov esi, ebx
push 5
lea ecx, [eax + 1]
mov ebx, ebp
call fcn.10001030
add esp, 8
mov dword [0x1000ef84], 5
jmp 0x10001d18
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push 0x14
push ebp
push 1
push esi
call ebx
test eax, eax
je 0x10001cb1
lea esp, [esp]
push 0x14
add edi, 1
push ebp
lea eax, [edi + 1]
push eax
push esi
call ebx
test eax, eax
jne 0x10001ca0
push 0x14
mov ebx, edi
call fcn.100010d0
mov ebp, dword [esp + 0x44]
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10001cf0
mov esi, dword [esp + 0x20]
push 0
push 6
mov ecx, 1
mov ebx, ebp
call fcn.10001030
mov esi, dword [esp + 0x38]
add esp, 8
mov dword [0x1000ef84], 6
jmp 0x10001d11
xor eax, eax
test edi, edi
jle 0x10001d11
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + eax*4]
push 0x14
push edx
lea ebx, [eax + 1]
push ebx
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, ebx
cmp eax, edi
jl 0x10001cf6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x2c]
push eax
call fcn.1000212d
mov eax, dword [0x1000ef84]
add esp, 4
test eax, eax
jne 0x10001ed9
lea esi, [edi*4]
push esi
call fcn.1000220a
mov ebx, eax
push esi
mov dword [esp + 0x20], ebx
call fcn.1000220a
add esp, 8
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x10001eaa
test eax, eax
je 0x10001eaa
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 2
push 0
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x38], eax
call fcn.1000220a
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x28], esi
jne 0x10001dd6
mov esi, dword [esp + 0x20]
push eax
push 8
lea ecx, [eax + 1]
mov ebx, ebp
call fcn.10001030
mov eax, dword [esp + 0x20]
push eax
call fcn.1000212d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1000212d
mov ebx, dword [esp + 0x20]
add esp, 0x10
call fcn.10001140
mov dword [0x1000ef84], 8
jmp 0x10002024
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
push esi
push 2
push 0
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
jne 0x10001e42
mov esi, dword [esp + 0x20]
push eax
push 9
lea ecx, [eax + 1]
mov ebx, ebp
call fcn.10001030
mov edx, dword [esp + 0x20]
push edx
call fcn.1000212d
mov eax, dword [esp + 0x20]
push eax
call fcn.1000212d
mov ebx, dword [esp + 0x20]
add esp, 0x10
call fcn.10001140
mov esi, dword [esp + 0x28]
push esi
mov dword [0x1000ef84], 9
call fcn.1000212d
add esp, 4
jmp 0x10001ee9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push edi
push ebx
push edx
mov edx, esi
call fcn.100017d0
add esp, 0x10
test eax, eax
jne 0x10001e9f
mov esi, dword [esp + 0x20]
push eax
push 0xa
lea ecx, [eax + 1]
mov ebx, ebp
call fcn.10001030
mov eax, dword [esp + 0x20]
push eax
call fcn.1000212d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1000212d
mov ebx, dword [esp + 0x20]
add esp, 0x10
call fcn.10001140
mov esi, dword [esp + 0x28]
mov dword [0x1000ef84], 0xa
push esi
call fcn.1000212d
add esp, 4
jmp 0x10001ee9
mov esi, dword [esp + 0x20]
push 0
push 7
mov ecx, 1
mov ebx, ebp
call fcn.10001030
mov ebx, dword [esp + 0x18]
add esp, 8
call fcn.10001140
mov dword [0x1000ef84], 7
jmp 0x10002024
cmp eax, 0xf
je 0x10001eee
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x1000ef84]
test eax, eax
jne 0x10002010
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push edi
call fcn.10001310
add esp, 4
cmp eax, 1
je 0x10001fdd
cmp byte [esp + 0x44], 1
jne 0x10001f43
mov esi, dword [esp + 0x24]
push 1
push 2
mov ecx, 1
mov ebx, ebp
call fcn.10001030
add esp, 8
cmp eax, 7
je 0x10001feb
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push esi
push edi
push ebx
mov ecx, ebp
call fcn.100013c0
add esp, 0xc
cmp eax, 1
je 0x10001fdd
push esi
push ebp
mov ecx, edi
mov edx, ebx
call fcn.10001980
mov ecx, 1
add esp, 8
cmp eax, ecx
je 0x10001fe7
cmp byte [esp + 0x48], cl
mov dword [esp + 0x1c], 0
jne 0x10001fa7
mov esi, dword [esp + 0x24]
push 2
push 3
mov ebx, ebp
call fcn.10001030
add esp, 8
cmp eax, 4
jne 0x10001fc6
mov dword [esp + 0x28], 0xffffffff
jmp 0x10001fc6
cmp dword [esp + 0x20], ecx
jne 0x10001fc6
mov al, byte [esp + 0x4c]
test al, al
jbe 0x10001fbe
movzx eax, al
mov dword [esp + 0x20], eax
jmp 0x10001fc6
mov dword [esp + 0x20], 3
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
jl 0x10001f02
jmp 0x10001feb
mov dword [esp + 0x1c], 1
jmp 0x10001feb
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1000212d
mov edx, dword [esp + 0x18]
push edx
call fcn.1000212d
mov ebx, dword [esp + 0x18]
add esp, 8
call fcn.10001140
mov eax, dword [0x1000ef84]
cmp eax, 7
je 0x10002024
cmp eax, 8
je 0x10002024
cmp eax, 9
je 0x10002024
cmp eax, 0xa
jne 0x1000202f
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret