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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cebb0
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.004602f0
xor ebx, ebx
mov dword [esp + 0x78], vtable.OrayUI::CXMLAttribute.0
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov dword [esp + 0x98], ebx
lea eax, [esp + 0x78]
push eax
mov eax, edi
mov dword [esp + 0xd4], ebx
call fcn.0046d6e0
cmp al, bl
je 0x474709
jmp 0x474210
lea ecx, [esp + 0x30]
lea eax, [esp + 0x78]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xd0], 1
mov eax, dword [ecx + 0x14]
push str.splitbutton
mov edi, 0xb
call fcn.004484f0
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0xd0], bl
cmp dword [esp + 0x48], 8
jb 0x47425b
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x13], bl
je 0x4742ea
push 0x284
call fcn.00488fa5
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, ebx
mov byte [esp + 0xd0], 2
je 0x4742a9
call fcn.0045ff50
mov dword [edi], vtable.OrayUI::COrayButton.0
mov dword [edi + 0x12c], 2
mov dword [edi + 0x280], ebx
mov byte [edi + 0x27c], bl
mov ecx, edi
jmp 0x4742ab
xor ecx, ecx
mov byte [esp + 0xd0], bl
mov dword [esi + 0x29c], ecx
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x78]
push eax
call edx
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x29c]
push eax
call fcn.00461430
mov ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x130]
mov dword [ecx + 0x130], edx
jmp 0x4746e3
lea ecx, [esp + 0x30]
lea eax, [esp + 0x78]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xd0], 3
mov eax, dword [ecx + 0x14]
push str.Columns
mov edi, 7
call fcn.004484f0
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0xd0], bl
cmp dword [esp + 0x48], 8
jb 0x474335
mov eax, dword [esp + 0x34]
push eax
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x13], bl
je 0x4746e3
mov dword [esp + 0x54], vtable.OrayUI::CXMLAttribute.0
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov dword [esp + 0x74], ebx
mov byte [esp + 0xd0], 4
mov eax, dword [esp + 0x98]
cmp eax, ebx
je 0x4746c8
mov edi, dword [eax + 0x18]
cmp edi, ebx
je 0x4746c8
lea ebx, [ebx]
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x474399
mov edi, dword [edi + 0x40]
cmp edi, ebx
jne 0x474380
jmp 0x4746c8
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp eax, ebx
je 0x4746c8
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x54]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xd0], 5
mov eax, dword [ecx + 0x14]
push str.item
mov edi, 4
call fcn.004484f0
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0xd0], 4
cmp dword [esp + 0x48], 8
jb 0x4743fa
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x13], bl
je 0x4746a1
push 0x54
call fcn.00488fa5
add esp, 4
cmp eax, ebx
je 0x474444
mov ecx, 7
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ebx
mov word [eax + 0x20], bx
or ecx, 0xffffffff
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov byte [eax + 0x48], bl
mov dword [eax + 0x50], ebx
mov esi, eax
jmp 0x474446
xor esi, esi
push ebx
lea edx, [esp + 0x58]
push edx
mov ecx, str.width
mov dword [esp + 0x24], esi
call fcn.0046ce60
mov dword [esi + 0x38], eax
push ebx
lea eax, [esp + 0x58]
push eax
mov ecx, str.height
call fcn.0046ce60
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x58]
push edx
mov edx, 0x4d97fc
mov ecx, 0x4e58d8
mov dword [esi + 0x3c], eax
call fcn.0046cc70
push 0xffffffffffffffff
lea ecx, [esi + 0x1c]
push ebx
mov byte [esp + 0xd8], 6
call fcn.00406430
mov byte [esp + 0xd0], 4
cmp dword [esp + 0x48], 8
jb 0x4744b8
mov eax, dword [esp + 0x34]
push eax
call fcn.00488fd0
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x58]
push ecx
mov ecx, 0x4e6b48
call fcn.0046ce60
push 0xffffffffffffffff
lea edx, [esp + 0x58]
push edx
mov ecx, 0x4e6b50
mov dword [esi + 0x40], eax
call fcn.0046ce60
mov dword [esi + 0x44], eax
push ebx
lea eax, [esp + 0x58]
push eax
mov ecx, str.lock
call fcn.0046d260
push 0x278
mov byte [esi + 0x48], al
call fcn.00488fa5
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0xd0], 7
je 0x474519
mov edi, eax
call fcn.0045ff50
jmp 0x47451b
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xd0], 4
push ecx
mov dword [esi + 0x4c], eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov edx, dword [esi + 0x38]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x34]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x38]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x3c]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0xf4]
call eax
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x48]
push ecx
mov ecx, dword [esi + 0x4c]
call fcn.00461430
mov eax, dword [edi + 0x130]
mov ecx, dword [esi + 0x4c]
mov dword [ecx + 0x130], eax
mov dword [esp + 0x9c], vtable.OrayUI::CXMLAttribute.0
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xd0], 8
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x474623
mov eax, dword [eax + 0x18]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x474623
jmp 0x4745d8
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
test eax, eax
mov ecx, dword [esp + 0x14]
jne 0x4745f6
mov eax, dword [ecx + 0x40]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x4745d4
jmp 0x474623
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
cmp eax, ebx
je 0x474623
mov ecx, dword [esi + 0x4c]
mov edx, dword [edi + 0x48]
push ecx
mov ecx, dword [edi + 0x130]
mov dword [esp + 0xc0], eax
push edx
lea eax, [esp + 0xa4]
push eax
call fcn.0045d130
mov ecx, dword [edi + 0x2a4]
add edi, 0x2a0
cmp ecx, ebx
jne 0x474637
xor edx, edx
jmp 0x47463f
mov edx, dword [edi + 8]
sub edx, ecx
sar edx, 2
cmp ecx, ebx
je 0x47465c
mov eax, dword [edi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x47465c
mov eax, dword [edi + 8]
mov dword [eax], esi
add eax, 4
mov dword [edi + 8], eax
jmp 0x47467b
mov esi, dword [edi + 8]
cmp ecx, esi
jbe 0x474668
call fcn.004a79fe
push esi
push edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x58]
push edx
mov eax, edi
call fcn.0045f590
mov byte [esp + 0xd0], 4
cmp dword [esp + 0xb8], 8
jb 0x47469d
mov eax, dword [esp + 0xa4]
push eax
call fcn.00488fd0
add esp, 4
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x4746c8
mov edi, dword [eax + 0x40]
cmp edi, ebx
je 0x4746c8
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x474399
mov edi, dword [edi + 0x40]
cmp edi, ebx
jne 0x4746b0
mov byte [esp + 0xd0], bl
cmp dword [esp + 0x70], 8
jb 0x4746e3
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00488fd0
add esp, 4
mov eax, dword [esp + 0x98]
cmp eax, ebx
je 0x474709
mov edi, dword [eax + 0x40]
cmp edi, ebx
je 0x474709
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x474751
mov edi, dword [edi + 0x40]
cmp edi, ebx
jne 0x4746f5
cmp dword [esp + 0x94], 8
mov dword [esp + 0x78], vtable.OrayUI::CXMLAttribute.0
jb 0x47472b
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004a74b2
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp eax, ebx
je 0x474709
mov dword [esp + 0x98], eax
jmp 0x474210