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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x459178]
xor eax, esp
mov dword [esp + 0x80], eax
mov edx, dword [ebp + 0xc]
mov eax, 0x467
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0xc], edx
cmp edi, eax
ja 0x40b25c
je 0x40b198
cmp edi, 0x100
jb 0x40b3e7
cmp edi, 0x101
jbe 0x40b464
cmp edi, 0x110
je 0x40b17b
cmp edi, 0x111
je 0x40b0fa
cmp edi, 0x138
je 0x40b0d9
cmp edi, 0x465
je 0x40b0a5
cmp edi, 0x466
jne 0x40b3e7
and dword [esi + 0x2a4], 0
mov eax, edx
mov edx, dword [esi + 0x2a4]
mov cl, 0x20
call fcn.00444260
mov dword [esi + 0x2a0], eax
mov ecx, esi
add dword [esi + 0x2a0], ebx
mov dword [esi + 0x2a4], edx
adc dword [esi + 0x2a4], 0
call fcn.0040af38
jmp 0x40b464
and dword [esi + 0x29c], 0
mov eax, edx
mov edx, dword [esi + 0x29c]
mov cl, 0x20
call fcn.00444260
mov dword [esi + 0x298], eax
add dword [esi + 0x298], ebx
mov dword [esi + 0x29c], edx
adc dword [esi + 0x29c], 0
jmp 0x40b464
push 0x3eb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp ebx, eax
jne 0x40b3e7
mov eax, dword [esi + 0x2dc]
jmp 0x40b467
xor ebx, ebx
inc ebx
cmp dx, bx
je 0x40b167
push 2
pop ecx
cmp dx, cx
je 0x40b15c
mov eax, 0x3e9
cmp dx, ax
jne 0x40b128
mov ecx, esi
call fcn.0040aefb
test al, al
je 0x40b174
mov ecx, esi
call fcn.0040a125
jmp 0x40b174
mov eax, 0x3ea
cmp dx, ax
jne 0x40b145
push 0
push ecx
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40b174
mov eax, 0x3ed
cmp dx, ax
jne 0x40b3e7
mov ecx, esi
call fcn.00409d4d
jmp 0x40b174
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0xc]
movzx eax, dx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, ebx
jmp 0x40b467
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
jne 0x40b464
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40b464
xor eax, eax
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
xor edi, edi
lea eax, [esp + 0x44]
mov dword [esp + 0x20], edi
push 0x2800
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040220d
xor ebx, ebx
lea ecx, [esp + 0x44]
push edi
inc ebx
push ebx
call fcn.004017f1
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040220d
push str.__..._r_n
call fcn.0043674b
pop ecx
push eax
push str.__..._r_n
lea ecx, [esp + 0x18]
call fcn.004022af
push 0x3eb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x40b24c
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
push ecx
push edi
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 7
push 0x115
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
push ebx
lea ecx, [esp + 0x18]
call fcn.004017f1
jmp 0x40b174
cmp edi, 0x468
je 0x40b45c
cmp edi, 0x469
je 0x40b407
cmp edi, 0x46a
je 0x40b3f9
cmp edi, 0x46b
je 0x40b3eb
cmp edi, 0x46c
jbe 0x40b3e7
cmp edi, 0x474
jbe 0x40b2ac
cmp edi, 0x477
jne 0x40b3e7
xor ebx, ebx
inc ebx
cmp dword [esi + 4], 0
je 0x40b3dc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b3dc
and dword [esp + 0x3c], 0
xor eax, eax
mov dword [esp + 0x40], 7
mov word [esp + 0x2c], ax
cmp edi, 0x477
jne 0x40b302
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b302
lea ecx, [esp + 0x2c]
cmp ecx, eax
je 0x40b35d
push 0xffffffffffffffff
push 0
push eax
call fcn.00401a6e
jmp 0x40b35d
push edi
lea eax, [esp + 0x78]
push eax
call fcn.0040b47e
push eax
lea ecx, [esp + 0x30]
call fcn.00401f36
push 0
push ebx
lea ecx, [esp + 0x7c]
call fcn.004017f1
cmp dword [esp + 0xc], 0x80004004
jne 0x40b35d
lea eax, [esp + 0x5c]
push 0x2801
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.00401f36
push 0
push ebx
lea ecx, [esp + 0x64]
call fcn.004017f1
mov edi, 0x44c808
push edi
call fcn.0043674b
pop ecx
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.004022af
push 0x3eb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x40b3c0
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b3c0
cmp dword [esp + 0x40], 8
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
push ecx
push 0
push 0xc2
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 7
push 0x115
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [esi + 0x2c0], 0
je 0x40b3d0
mov ecx, esi
call fcn.0040bddd
push 0
push ebx
lea ecx, [esp + 0x34]
call fcn.004017f1
mov byte [esi + 0x2b9], bl
jmp 0x40b174
xor eax, eax
jmp 0x40b467
mov dword [esi + 0x10], 3
call fcn.00409b30
jmp 0x40b464
xor ebx, ebx
inc ebx
mov byte [esi + 0x2ba], bl
jmp 0x40b174
xor ebx, ebx
inc ebx
test edx, edx
je 0x40b174
push dword [esi + 4]
lea ecx, [esp + 0x14]
call fcn.00408d3f
push edx
call fcn.00408d87
call fcn.00405706
mov ecx, dword [esp + 0xc]
mov al, byte [esp + 0x20]
mov byte [ecx + 0x40], al
cmp al, 5
jne 0x40b44e
cmp byte [esi + 0x2c0], 0
mov byte [esi + 0x2ba], bl
je 0x40b44e
mov ecx, esi
call fcn.0040bddd
lea ecx, [esp + 0x10]
call fcn.00408d67
jmp 0x40b174
push edx
call fcn.0040a97f
mov byte [ebx], al
xor eax, eax
inc eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00435a0a
mov esp, ebp
pop ebp
ret 0xc