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

Disassembly:
push 0xffffffffffffffff
push 0x41e82d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov al, byte [esp + 8]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.0040f880
lea ecx, [esp + 0x18]
mov dword [esp + 0x1ac], ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0040f1e0
lea edx, [esp + 0x19]
lea ecx, [esp + 0x3c]
push edx
mov byte [esp + 0x1b0], 1
call fcn.0040f1e0
lea eax, [esp + 0x1b]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0x1b0], 2
call fcn.0040f1e0
lea ecx, [esp + 0x1a]
mov byte [esp + 0x1ac], 3
push ecx
lea ecx, [esp + 0x60]
call fcn.0040f1e0
lea edx, [esp + 0x13]
lea ecx, [esp + 0x6c]
push edx
mov byte [esp + 0x1b0], 4
call fcn.0040f1e0
mov eax, dword [0x4306e4]
mov byte [esp + 0x1ac], 5
mov ebp, dword [eax]
cmp ebp, eax
mov dword [esp + 0x14], ebp
je 0x40aebf
jmp 0x40aaf1
mov ebp, dword [esp + 0x14]
mov eax, dword [0x41f17c]
lea esi, [ebp + 8]
push eax
push ebx
push esi
lea ecx, [esp + 0x38]
call fcn.0040f570
mov ecx, dword [0x41f17c]
lea edx, [esi + 0x10]
push ecx
push ebx
push edx
lea ecx, [esp + 0x48]
call fcn.0040f570
mov eax, dword [0x41f17c]
lea ecx, [esi + 0x20]
push eax
push ebx
push ecx
lea ecx, [esp + 0x58]
call fcn.0040f570
mov edx, dword [0x41f17c]
lea eax, [esi + 0x30]
push edx
push ebx
push eax
lea ecx, [esp + 0x68]
call fcn.0040f570
mov ecx, dword [0x41f17c]
lea edx, [esi + 0x40]
push ecx
push ebx
push edx
lea ecx, [esp + 0x78]
call fcn.0040f570
mov esi, dword [esi + 0x50]
mov dword [esp + 0x7c], esi
lea eax, [esi - 1]
cmp eax, 4
ja case.default.0x40ab6b
jmp dword [eax*4 + 0x40af60]
mov esi, dword [esp + 0x70]
cmp esi, ebx
jne 0x40ab7f
mov esi, 0x41f178
mov edx, dword [esp + 0x60]
cmp edx, ebx
jne 0x40ab8c
mov edx, 0x41f178
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
jne 0x40ab99
mov ecx, 0x41f178
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x40aba6
mov eax, 0x41f178
push esi
push edx
push ecx
push eax
lea eax, [esp + 0xb4]
push str.option_name__s_type_spin_default__s_min__s_max__s
push eax
call dword [0x41f14c]
mov cl, byte [esp + 0x2b]
add esp, 8
mov esi, esp
mov dword [esp + 0x24], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.0040f880
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0040fb90
call fcn.00404f70
add esp, 0x10
jmp case.default.0x40ab6b
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
jne 0x40ac0f
mov ecx, 0x41f178
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x40ac1c
mov eax, 0x41f178
push ecx
push eax
lea eax, [esp + 0xac]
push str.option_name__s_type_check_default__s
push eax
call dword [0x41f14c]
mov cl, byte [esp + 0x23]
mov esi, esp
mov dword [esp + 0x24], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.0040f880
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0040fb90
call fcn.00404f70
add esp, 0x10
jmp case.default.0x40ab6b
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x40ac80
mov eax, 0x41f178
push eax
lea eax, [esp + 0xa8]
push str.option_name__s_type_button
push eax
call dword [0x41f14c]
push ecx
mov cl, byte [esp + 0x23]
mov esi, esp
mov dword [esp + 0x24], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.0040f880
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0040fb90
call fcn.00404f70
add esp, 0x10
jmp case.default.0x40ab6b
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
jne 0x40ace4
mov ecx, 0x41f178
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x40acf1
mov eax, 0x41f178
push ecx
push eax
lea eax, [esp + 0xac]
push str.option_name__s_type_string_default__s
push eax
call dword [0x41f14c]
mov cl, byte [esp + 0x23]
mov esi, esp
mov dword [esp + 0x24], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.0040f880
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0040fb90
call fcn.00404f70
add esp, 0x10
jmp case.default.0x40ab6b
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
jne 0x40ad55
mov ecx, 0x41f178
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x40ad62
mov eax, 0x41f178
push ecx
push eax
lea eax, [esp + 0xac]
push str.option_name__s_type_combo_default__s
push eax
call dword [0x41f14c]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, 1
mov ebx, ecx
push ebp
push ebx
lea ecx, [esp + 0x24]
call fcn.0040fc50
test al, al
je 0x40adc6
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xa4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.0040fc30
push 0x42215c
lea eax, [esp + 0x60]
push ebp
lea ecx, [esp + 0x8c]
push eax
push ecx
call fcn.00410c00
mov edx, dword [eax + 8]
add esp, 0x10
test edx, edx
push 1
lea ecx, [esp + 0x88]
seta bl
call fcn.0040f880
test bl, bl
je 0x40ae6d
mov edi, str._var
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._var
lea ecx, [esp + 0x24]
call fcn.0040fad0
mov eax, ebp
push 0x42215c
push eax
lea edx, [esp + 0x64]
lea eax, [esp + 0x9c]
push edx
push eax
inc ebp
call fcn.00410c00
add esp, 0x10
mov ecx, dword [0x41f17c]
mov byte [esp + 0x1ac], 6
push ecx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.0040f9f0
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x1b0], 5
call fcn.0040f880
jmp 0x40adc6
mov dl, byte [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
xor eax, eax
mov dword [esp + 0x90], esp
mov byte [ecx], dl
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov edx, dword [0x41f17c]
push edx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040f570
call fcn.00404f70
mov ebp, dword [esp + 0x24]
add esp, 0x10
xor ebx, ebx
mov eax, dword [ebp]
mov ecx, dword [0x4306e4]
cmp eax, ecx
mov dword [esp + 0x14], eax
jne 0x40aaed
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x1b0], 0
call fcn.0040f880
push 1
lea ecx, [esp + 0x60]
call fcn.0040f880
push 1
lea ecx, [esp + 0x50]
call fcn.0040f880
push 1
lea ecx, [esp + 0x40]
call fcn.0040f880
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x40af17
mov al, byte [ecx - 1]
test al, al
je 0x40af0d
cmp al, 0xff
je 0x40af0d
dec al
mov byte [ecx - 1], al
jmp 0x40af17
dec ecx
push ecx
call fcn.004150e0
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
cmp ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x40af47
mov al, byte [ecx - 1]
test al, al
je 0x40af3d
cmp al, 0xff
je 0x40af3d
dec al
mov byte [ecx - 1], al
jmp 0x40af47
dec ecx
push ecx
call fcn.004150e0
add esp, 4
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1a0
ret