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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
xor eax, eax
push edi
mov edi, dword [0x42f398]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebp
mov esi, ecx
mov ecx, dword [esi + 4]
push 0x41d
push ecx
mov dword [esp + 0x28], 0
call edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ebx, dword [0x42f388]
push 1
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], edx
mov edx, dword [esi + 4]
push 0
push edx
mov dword [esp + 0x24], eax
call ebx
mov ecx, dword [esi + 4]
push 2
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
call ebx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
push ebp
push eax
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call dword [0x42f424]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x3c]
push ecx
push ebp
mov dword [esp + 0x78], eax
xor eax, eax
push 0x417
push edx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call edi
mov ebx, dword [esp + 0x40]
mov eax, dword [esi + 4]
push 1
push ebx
push 0x403
push eax
mov dword [esi + 0x88], ebp
call edi
push 0
push ebx
push 0x448
mov ecx, dword [esi + 4]
push ecx
call edi
cmp byte [0x438ec8], 0
je 0x40fc76
movzx eax, byte [esp + 0x74]
neg eax
sbb eax, eax
and eax, 0xffffd000
add eax, 0x4000
jmp 0x40fc78
xor eax, eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
or eax, 0x40
push eax
mov eax, dword [esp + 0x80]
push eax
mov ecx, esi
call fcn.0040f7c0
mov ecx, dword [esi + 4]
push 0
push ebx
push 0x403
push ecx
call edi
mov ebp, dword [esi + 4]
call dword [0x42f33c]
cmp eax, ebp
je 0x40fcc1
push 0
push 0xffffffffffffffff
push 0x448
push ebp
call edi
mov edx, dword [esi + 4]
mov ebp, dword [0x42f3d8]
xor eax, eax
push eax
push 0x201
push 0x201
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
push edx
lea eax, [esp + 0x60]
push eax
mov dword [esi + 0x88], 0xffffffff
call ebp
test eax, eax
je 0x40fd39
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call dword [0x42f428]
test eax, eax
je 0x40fd39
mov ecx, dword [esi + 4]
push 1
push 0x201
push 0x201
push ecx
lea edx, [esp + 0x60]
push edx
call ebp
or ebp, 0xffffffff
cmp dword [esi + 0x8c], ebp
je 0x40fdd2
cmp dword [0x438f88], 0
jne 0x40fd81
mov edi, dword [0x438e94]
add edi, 0x10
push edi
call dword [0x42f09c]
cmp dword [0x438f88], 0
jne 0x40fd7a
push str.WTL_CmdBar_InternalAutoPopupMsg
call dword [0x42f304]
mov dword [0x438f88], eax
push edi
call dword [0x42f0a0]
movzx eax, word [esi + 0x8c]
mov ecx, dword [0x438f88]
mov edx, dword [esi + 4]
mov edi, dword [0x42f394]
push 0
push eax
push ecx
push edx
call edi
test dword [esi + 0x8c], 0xffff0000
jne 0x40fdc2
test byte [esi + 0x84], 8
jne 0x40fdc2
mov eax, dword [esi + 4]
push 0
push 0x28
push 0x100
push eax
call edi
pop edi
mov dword [esi + 0x8c], ebp
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
and byte [esi + 0x84], 0xef
test byte [esi + 0x84], 0x20
jne 0x40fe09
mov al, byte [esi + 0x85]
test al, 2
je 0x40fdf8
test al, 4
je 0x40fdf8
and al, 0xf7
mov byte [esi + 0x85], al
mov ecx, esi
call fcn.0040ca80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
mov ecx, dword [esi + 4]
push 0
push ebx
push 0x448
push ecx
call edi
mov edx, dword [esi + 4]
push 0
push 1
invalid