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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6af66c
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push esi
mov esi, ecx
mov eax, dword [esi + 0x160]
test eax, eax
je 0x549de3
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xc], 3
je 0x549ddf
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x549dc8
xor al, al
jmp 0x54a1eb
test eax, eax
jne 0x549dea
xor al, al
jmp 0x54a1eb
mov eax, dword [esi]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x21c]
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00580bf0
add esp, 8
lea ecx, [esp + 0xa4]
push esi
call fcn.005145f0
lea edx, [esp + 0x58]
mov ecx, esi
push edx
mov dword [esp + 0x1b0], 0
call fcn.004da560
push 0x64
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b4], 1
call fcn.004f0f30
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1b0], 2
call fcn.004f7dd0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ac], 1
call fcn.004dd920
lea ecx, [esp + 0x58]
mov byte [esp + 0x1ac], 0
call fcn.004dd920
push 0x20
call fcn.004f2900
add esp, 4
lea ecx, [esp + 0xa4]
push eax
call fcn.004f7d10
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x80]
push 0
push ecx
push eax
call dword [0x6c7928]
test eax, eax
jne 0x549ecf
lea ecx, [esp + 0xa4]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.00514670
xor al, al
jmp 0x54a1eb
lea edx, [esp + 0x80]
push edi
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.0054a4a0
mov edi, eax
add esp, 8
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov edi, dword [edi + 0xc]
push edi
push edx
mov edx, dword [esp + 0xb0]
push ecx
push eax
lea ecx, [esp + 0xb8]
call dword [edx + 0x130]
mov eax, dword [esp + 0x1bc]
mov ecx, dword [esp + 0x1b8]
push eax
push ecx
push 0xf
mov ecx, esi
call fcn.004cf6d0
mov eax, dword [esi + 0x160]
test eax, eax
mov dword [esp + 0xc], eax
je 0x54a1d1
push ebx
push ebp
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
cmp dword [eax + 0xc], 3
jne 0x54a1bc
mov ebx, dword [eax + 0x18]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x54]
push ecx
mov eax, dword [ebx]
push edx
mov ecx, ebx
call dword [eax + 0x210]
mov eax, dword [ebx]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x60]
push ecx
push edx
mov ecx, ebx
call dword [eax + 0x218]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov edi, dword [0x6c77f8]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x114]
push 0
push 0
push 0x418
push eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
call edi
xor ebp, ebp
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0x18], ebp
jle 0x54a1bc
jmp 0x549fce
mov edi, dword [0x6c77f8]
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x9c]
push ecx
push ebp
push 0x417
push eax
call edi
test eax, eax
jne 0x549ffb
push str.TB_GETBUTTON_failed_
call fcn.00625950
add esp, 4
jmp 0x54a1ab
cmp byte [esp + 0xa5], 1
jne 0x54a1ab
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x1c]
push edx
push ebp
push 0x41d
push eax
call edi
test eax, eax
jne 0x54a033
push str.TB_GETITEMRECT_failed_
call fcn.00625950
add esp, 4
jmp 0x54a1ab
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
sub eax, edx
sub ecx, edi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edx
call fcn.004f1960
test al, al
je 0x54a1ab
mov al, byte [esi + 0xc8]
mov byte [esp + 0x13], 0
and al, 0x10
jne 0x54a08c
mov ecx, dword [esi + 0x2c]
test byte [ecx + 0xc8], 0x10
je 0x54a16f
test al, al
jne 0x54a16f
cmp dword [esp + 0x4c], 6
jl 0x54a16f
call fcn.00524430
mov ebp, eax
test ebp, ebp
je 0x54a16b
call dword [ebp + 0x94]
test eax, eax
je 0x54a16b
call dword [ebp + 0x90]
test eax, eax
je 0x54a16b
call fcn.00524430
test eax, eax
je 0x54a0e5
mov ecx, dword [esi + 0x114]
push str.REBAR
push ecx
call dword [eax]
mov edi, eax
jmp 0x54a0e7
xor edi, edi
mov dword [esp + 0x5c], edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x64]
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x1c]
xor eax, eax
push edx
mov edx, dword [esp + 0x19c]
push ecx
push eax
push eax
push edx
push edi
mov byte [esp + 0x1d0], 3
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [ebp + 8]
test eax, eax
jne 0x54a14e
mov byte [esp + 0x13], 1
test edi, edi
mov byte [esp + 0x1b8], 0
je 0x54a163
call fcn.00524430
push edi
call dword [eax + 4]
mov al, byte [esp + 0x13]
test al, al
jne 0x54a199
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
mov edx, dword [esp + 0xbc]
push eax
lea ecx, [esp + 0xc0]
call dword [edx + 0xf0]
jmp 0x54a19d
mov ebp, dword [esp + 0x18]
mov eax, dword [ebx]
push 0
push 0
mov ecx, ebx
call dword [eax + 0x118]
mov eax, dword [esp + 0x44]
inc ebp
cmp ebp, eax
mov dword [esp + 0x18], ebp
jl 0x549fc8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x549f37
pop ebp
pop ebx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1b0], 0xffffffff
call fcn.00514670
mov al, 1
pop edi
mov ecx, dword [esp + 0x1a4]
pop esi
mov dword fs:[0], ecx
add esp, 0x1ac
ret 8