Function at 0x20412180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x20481c0b
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x204a31e0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x204a31e0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov ebx, ecx
mov dword [esp + 0x3c], ebx
mov esi, edx
mov byte [esp + 0x30], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0xd0], ebp
mov eax, dword [ebx + 8]
cmp eax, ebp
mov dword [esp + 0x40], eax
jne 0x2041220d
mov dword [esp + 0xd0], 0xffffffff
lea eax, [esp + 0x18]
call fcn.20410ee0
jmp 0x20412454
cmp esi, ebp
jne 0x20412272
call fcn.20401670
mov esi, eax
cmp esi, ebp
je 0x20412257
cmp dword [esi + 0xec], ebp
jne 0x20412257
lea eax, [esi + 0x78]
push eax
mov ebx, str.SETTINGS
mov eax, esi
call fcn.20402000
add esp, 4
test eax, eax
je 0x20412257
push eax
mov ebx, 0x204869ac
mov eax, esi
call fcn.20402000
add esp, 4
test eax, eax
mov dword [esp + 0x38], eax
jne 0x204122dd
mov dword [esp + 0xd0], 0xffffffff
lea eax, [esp + 0x18]
call fcn.20410ee0
xor al, al
jmp 0x20412456
mov edi, dword [esi + 0xec]
test edi, edi
mov dword [esp + 0x14], 0
je 0x20412257
push 0x204869ac
push edi
lea eax, [esp + 0x1c]
call fcn.20402090
add esp, 8
test eax, eax
mov dword [esp + 0x38], eax
jne 0x204122d1
push edi
mov ebx, 0x204869ac
mov eax, esi
call fcn.20402000
add esp, 4
test eax, eax
mov dword [esp + 0x38], eax
jne 0x204122dd
mov dword [esp + 0xd0], 0xffffffff
lea eax, [esp + 0x18]
call fcn.20410ee0
xor al, al
jmp 0x20412456
push eax
push esi
call fcn.20402330
add esp, 8
jmp 0x204122e1
mov ebx, dword [esp + 0x3c]
xor eax, eax
cmp dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
jle 0x20412409
mov dword [esp + 0x14], eax
jmp 0x20412308
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x20412492
mov ecx, dword [esp + 0x34]
cmp ecx, dword [ebx + 8]
jge 0x20412492
mov ebx, dword [ebx + 4]
lea edx, [esp + 0x18]
add ebx, eax
push edx
call fcn.204110e0
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x20412257
push ebp
push str.OPTION_OPTNAME_s
or ebx, 0xffffffff
push ebx
lea eax, [esp + 0x50]
push 0x40
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf_s]
mov ecx, dword [esp + 0x4c]
add esp, 0x14
push 4
push ecx
push esi
lea ecx, [esp + 0x50]
call fcn.20402bb0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x2041247e
push str.OPTNAME
push edi
mov eax, ebp
call fcn.204022f0
add esp, 8
cmp eax, 1
je 0x2041247e
mov eax, dword [esp + 0x20]
test eax, eax
push str.DESC
push edi
jne 0x2041239c
mov eax, 0x20485878
call fcn.204022f0
add esp, 8
cmp eax, 1
je 0x2041247e
mov eax, dword [esp + 0x24]
test eax, eax
push str.TYPE
push edi
jne 0x204123c0
mov eax, str.DWORD
call fcn.204022f0
add esp, 8
cmp eax, 1
je 0x2041247e
mov edx, dword [esp + 0x28]
push 0
push edx
push edi
mov ecx, str.VALUE
call fcn.204044d0
add esp, 0xc
cmp eax, 1
je 0x2041247e
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], 0x1c
add eax, 1
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x34], eax
jl 0x20412300
mov dword [esp + 0xd0], 0xffffffff
test ebp, ebp
je 0x20412421
push ebp
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x20412432
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x20412443
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x20412454
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.20478952
add esp, 0xc0
ret
mov dword [esp + 0xd0], ebx
lea eax, [esp + 0x18]
call fcn.20410ee0
xor al, al
jmp 0x20412456
jmp fcn.20477d24