Function at 0x40b49c
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 0x40b71d
je 0x40b659
cmp edi, 0x100
jb 0x40b8a8
cmp edi, 0x101
jbe 0x40b925
cmp edi, 0x110
je 0x40b63c
cmp edi, 0x111
je 0x40b5bb
cmp edi, 0x138
je 0x40b59a
cmp edi, 0x465
je 0x40b566
cmp edi, 0x466
jne 0x40b8a8
and dword [esi + 0x2a4], 0
mov eax, edx
mov edx, dword [esi + 0x2a4]
mov cl, 0x20
call fcn.00444bc0
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.0040b3f9
jmp 0x40b925
and dword [esi + 0x29c], 0
mov eax, edx
mov edx, dword [esi + 0x29c]
mov cl, 0x20
call fcn.00444bc0
mov dword [esi + 0x298], eax
add dword [esi + 0x298], ebx
mov dword [esi + 0x29c], edx
adc dword [esi + 0x29c], 0
jmp 0x40b925
push 0x3eb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp ebx, eax
jne 0x40b8a8
mov eax, dword [esi + 0x2dc]
jmp 0x40b928
xor ebx, ebx
inc ebx
cmp dx, bx
je 0x40b628
push 2
pop ecx
cmp dx, cx
je 0x40b61d
mov eax, 0x3e9
cmp dx, ax
jne 0x40b5e9
mov ecx, esi
call fcn.0040b3bc
test al, al
je 0x40b635
mov ecx, esi
call fcn.0040a5f1
jmp 0x40b635
mov eax, 0x3ea
cmp dx, ax
jne 0x40b606
push 0
push ecx
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40b635
mov eax, 0x3ed
cmp dx, ax
jne 0x40b8a8
mov ecx, esi
call fcn.0040a1fc
jmp 0x40b635
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 0x40b928
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
jne 0x40b925
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40b925
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.004039a9
mov ecx, eax
call fcn.00416136
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004028a8
xor ebx, ebx
lea ecx, [esp + 0x44]
push edi
inc ebx
push ebx
call fcn.00401df6
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.004028a8
push str.__..._r_n
call fcn.004370ab
pop ecx
push eax
push str.__..._r_n
lea ecx, [esp + 0x18]
call fcn.0040294a
push 0x3eb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x40b70d
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.00401df6
jmp 0x40b635
cmp edi, 0x468
je 0x40b91d
cmp edi, 0x469
je 0x40b8c8
cmp edi, 0x46a
je 0x40b8ba
cmp edi, 0x46b
je 0x40b8ac
cmp edi, 0x46c
jbe 0x40b8a8
cmp edi, 0x474
jbe 0x40b76d
cmp edi, 0x477
jne 0x40b8a8
xor ebx, ebx
inc ebx
cmp dword [esi + 4], 0
je 0x40b89d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b89d
and dword [esp + 0x3c], 0
xor eax, eax
mov dword [esp + 0x40], 7
mov word [esp + 0x2c], ax
cmp edi, 0x477
jne 0x40b7c3
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b7c3
lea ecx, [esp + 0x2c]
cmp ecx, eax
je 0x40b81e
push 0xffffffffffffffff
push 0
push eax
call fcn.00402073
jmp 0x40b81e
push edi
lea eax, [esp + 0x78]
push eax
call fcn.0040b93f
push eax
lea ecx, [esp + 0x30]
call fcn.004025d1
push 0
push ebx
lea ecx, [esp + 0x7c]
call fcn.00401df6
cmp dword [esp + 0xc], 0x80004004
jne 0x40b81e
lea eax, [esp + 0x5c]
push 0x2801
push eax
call fcn.004039a9
mov ecx, eax
call fcn.00416136
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.004025d1
push 0
push ebx
lea ecx, [esp + 0x64]
call fcn.00401df6
mov edi, 0x44c840
push edi
call fcn.004370ab
pop ecx
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.0040294a
push 0x3eb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x40b881
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b881
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 0x40b891
mov ecx, esi
call fcn.0040c29e
push 0
push ebx
lea ecx, [esp + 0x34]
call fcn.00401df6
mov byte [esi + 0x2b9], bl
jmp 0x40b635
xor eax, eax
jmp 0x40b928
mov dword [esi + 0x10], 3
call fcn.00409fdf
jmp 0x40b925
xor ebx, ebx
inc ebx
mov byte [esi + 0x2ba], bl
jmp 0x40b635
xor ebx, ebx
inc ebx
test edx, edx
je 0x40b635
push dword [esi + 4]
lea ecx, [esp + 0x14]
call fcn.00409208
push edx
call fcn.00409250
call fcn.00405be6
mov ecx, dword [esp + 0xc]
mov al, byte [esp + 0x20]
mov byte [ecx + 0x40], al
cmp al, 5
jne 0x40b90f
cmp byte [esi + 0x2c0], 0
mov byte [esi + 0x2ba], bl
je 0x40b90f
mov ecx, esi
call fcn.0040c29e
lea ecx, [esp + 0x10]
call fcn.00409230
jmp 0x40b635
push edx
call fcn.0040ae30
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.00436362
mov esp, ebp
pop ebp
ret 0xc