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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
and dword [esi + 0x38], 0
push edi
lea ecx, [ebp - 0x14]
call fcn.0040ff82
lea ecx, [ebp - 0x20]
call fcn.0040ff82
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebx + 4]
test edi, edi
jne 0x404a12
push dword [ebp + 0xc]
call fcn.00404995
mov bl, 1
push dword [ebp - 0x20]
call fcn.0044f951
push dword [ebp - 0x14]
call fcn.0044f951
pop ecx
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0xc
xor edx, edx
mov eax, ebx
call fcn.00410152
cmp word [eax], 0x5b
jne 0x404c39
lea edx, [edi - 1]
mov eax, ebx
call fcn.00410152
cmp word [eax], 0x5d
jne 0x404c39
add edi, 0xfffffffe
push edi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 8], edi
push ebx
lea edi, [ebp - 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.0040551d
test al, al
je 0x404c39
push 0x46c328
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404a80
mov eax, dword [ebp + 8]
or dword [eax + 4], 1
add eax, 8
jmp 0x404bf6
push 0x46c334
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404aa1
mov eax, dword [ebp + 8]
or dword [eax + 4], 8
add eax, 0x14
jmp 0x404bf6
push 0x46c344
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404adb
mov eax, dword [ebp + 8]
or dword [eax + 4], 0x10
lea esi, [eax + 0x4c]
call fcn.004077a7
lea eax, [ebp - 0x20]
mov ecx, esi
call fcn.004077fa
test eax, eax
je 0x404c16
xor bl, bl
jmp 0x4049f7
push 0x46c35c
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404b05
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 0x20
call fcn.0045192d
pop ecx
mov dword [esi + 0x2c], eax
jmp 0x404c16
push 0x46c364
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404b2f
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 0x40
call fcn.0045192d
pop ecx
mov dword [esi + 0x3c], eax
jmp 0x404c16
push 0x46c368
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404b5c
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 0x80
call fcn.0045192d
pop ecx
mov dword [esi + 0x40], eax
jmp 0x404c16
push 0x46c36c
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404b89
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 0x100
call fcn.0045192d
pop ecx
mov dword [esi + 0x44], eax
jmp 0x404c16
push 0x46c370
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404bb3
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 0x200
call fcn.0045192d
pop ecx
mov dword [esi + 0x48], eax
jmp 0x404c16
push 0x46c374
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404bda
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 2
call fcn.0045192d
pop ecx
mov dword [esi + 0x30], eax
jmp 0x404c16
push 0x46c388
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404c00
mov eax, dword [ebp + 8]
or dword [eax + 4], 4
add eax, 0x20
lea ebx, [ebp - 0x20]
call fcn.00410163
jmp 0x404c16
push 0x46bf80
lea esi, [ebp - 0x14]
call fcn.004102ff
test al, al
pop ecx
je 0x404ad4
push dword [ebp - 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
lea edi, [ebp - 4]
lea eax, [ebp - 0x14]
call fcn.0040551d
test al, al
jne 0x404a5f
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
jne 0x404c4e
lea eax, [esi + 0x14]
mov dword [esi + 4], 8
call fcn.00410163
test byte [esi + 4], 8
je 0x404c91
mov eax, dword [esi + 0x18]
and dword [esi + 0x80], 0
test eax, eax
mov dword [esi + 0x7c], eax
lea edi, [eax - 1]
je 0x404c91
test edi, edi
jl 0x404c91
lea ebx, [esi + 0x14]
mov edx, edi
mov eax, ebx
call fcn.00410152
movzx eax, word [eax]
push eax
call fcn.00451987
dec edi
test eax, eax
pop ecx
je 0x404c91
inc dword [esi + 0x80]
test edi, edi
jge 0x404c6f
mov edi, dword [sym.imp.USER32.dll_EnumChildWindows]
and dword [esi + 0x78], 0
push esi
push 0x404ce4
push dword [ebp + 0xc]
call edi
cmp dword [esi + 0x38], 0
jne 0x404cd3
test byte [esi + 4], 8
je 0x404cd3
and dword [esi + 0x78], 0
lea ebx, [esi + 0x14]
lea eax, [esi + 0x20]
mov dword [esi + 4], 4
call fcn.00410163
push esi
push 0x404ce4
push dword [ebp + 0xc]
call edi
mov eax, dword [esi + 0x38]
test eax, eax
je 0x404ad4
push eax
jmp 0x4049f0