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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cdcd5
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x98], vtable.OrayUI::CXMLAttribute.0
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], esi
mov word [esp + 0xa0], si
mov dword [esp + 0xb8], esi
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0xec], esi
call fcn.0046d6e0
test al, al
mov dword [esp + 0x18], esi
je 0x479d84
lea esp, [esp]
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xe8], 1
mov eax, dword [ecx + 0x14]
push 0x4e4e58
mov edi, 5
call fcn.004484f0
test eax, eax
mov ebx, 8
sete byte [esp + 0x17]
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], ebx
jb 0x4791a9
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x479415
push 0x88
call fcn.00488fa5
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xe8], 2
je 0x4791db
push eax
call fcn.00466700
mov esi, eax
jmp 0x4791dd
xor esi, esi
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0xec], 0
push ecx
mov edx, 0x4d97fc
mov ecx, str.picfile
mov dword [esp + 0x20], esi
mov dword [esi + 4], 1
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x3c]
mov byte [esp + 0xf0], 3
call fcn.00406430
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], ebx
jb 0x479241
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov edx, 0x4d97fc
mov ecx, 0x4e58d8
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 8]
mov byte [esp + 0xf0], 4
call fcn.00406430
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], ebx
jb 0x479292
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
sub esp, 0x10
mov eax, esp
xor edi, edi
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, str.rectpos
call fcn.0046d460
mov edx, dword [eax]
mov dword [esi + 0x58], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0x5c], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x60], edx
mov eax, dword [eax + 0xc]
sub esp, 0x10
mov dword [esi + 0x64], eax
mov eax, esp
mov dword [eax], ebx
lea ecx, [esp + 0x6c]
push ecx
mov dword [eax + 4], edi
lea edx, [esp + 0xac]
mov dword [eax + 8], edi
push edx
mov ecx, str.rectmargin
mov dword [eax + 0xc], edi
call fcn.0046d460
mov ecx, dword [eax]
mov dword [esi + 0x68], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x6c], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x70], ecx
mov edx, dword [eax + 0xc]
push edi
lea eax, [esp + 0x9c]
push eax
mov ecx, str.onlyborder
mov dword [esi + 0x74], edx
call fcn.0046d260
push edi
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.alpha
mov byte [esi + 0x7c], al
call fcn.0046ce60
push edi
lea edx, [esp + 0x9c]
push edx
mov ecx, str.transparent
mov dword [esi + 0x80], eax
call fcn.0046d260
mov byte [esi + 0x84], al
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov edx, str.stretchall
mov ecx, str.paintmode
call fcn.0046cc70
mov byte [esp + 0xe8], 5
mov eax, dword [esp + 0xd0]
push 0x4dce74
lea edi, [ebx + 6]
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x4793a5
mov dword [esi + 0x78], eax
jmp 0x4793f3
mov eax, dword [esp + 0xd0]
push str.tiles
mov edi, 5
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x4793cf
mov dword [esi + 0x78], 1
jmp 0x4793f3
mov eax, dword [esp + 0xd0]
push str.stretchall
mov edi, 0xa
lea ecx, [esp + 0xc0]
call fcn.004484f0
mov dword [esi + 0x78], 2
mov byte [esp + 0xe8], 0
cmp dword [esp + 0xd4], 8
jb 0x479a25
mov edx, dword [esp + 0xc0]
jmp 0x479a1c
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xe8], 6
mov eax, dword [ecx + 0x14]
push 0x4e5fb0
mov edi, 4
call fcn.004484f0
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], ebx
jb 0x479469
mov eax, dword [esp + 0x80]
push eax
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x4796fa
push 0x88
call fcn.00488fa5
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xe8], 7
je 0x47949b
push eax
call fcn.004665b0
mov esi, eax
jmp 0x47949d
xor esi, esi
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x9c]
mov byte [esp + 0xec], 0
push edx
mov edx, 0x4d97fc
mov ecx, 0x4db470
mov dword [esp + 0x20], esi
mov dword [esi + 4], 2
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x3c]
mov byte [esp + 0xf0], 8
call fcn.00406430
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], ebx
jb 0x479501
mov eax, dword [esp + 0x80]
push eax
call fcn.00488fd0
add esp, 4
push 1
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.singleline
call fcn.0046d260
lea edx, [esp + 0x7c]
mov byte [esi + 0x60], al
push edx
lea eax, [esp + 0x9c]
push eax
mov edx, 0x4d97fc
mov ecx, str.textcolor
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x64]
mov byte [esp + 0xf0], 9
call fcn.00406430
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], ebx
jb 0x479569
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x9c]
push eax
mov edx, 0x4dd30c
mov ecx, str.horzalign
call fcn.0046cc70
mov byte [esp + 0xe8], 0xa
mov eax, dword [esp + 0xd0]
push 0x4dd30c
mov edi, 4
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x4795b6
mov dword [esi + 0x5c], eax
jmp 0x47960a
mov eax, dword [esp + 0xd0]
push 0x4db490
mov edi, 6
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x4795e0
mov dword [esi + 0x5c], 4
jmp 0x47960a
mov eax, dword [esp + 0xd0]
push str.right
mov edi, 5
lea ecx, [esp + 0xc0]
call fcn.004484f0
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
mov dword [esi + 0x5c], eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, 0x4db490
mov ecx, str.vertalign
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xc4]
mov byte [esp + 0xf0], 0xb
call fcn.00406430
mov byte [esp + 0xe8], 0xa
cmp dword [esp + 0x94], ebx
jb 0x47965f
mov eax, dword [esp + 0x80]
push eax
call fcn.00488fd0
add esp, 4
mov eax, dword [esp + 0xd0]
push 0x4dd324
mov edi, 3
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x479689
mov dword [esi + 0x58], 1
jmp 0x4796d8
mov eax, dword [esp + 0xd0]
push 0x4db490
mov edi, 6
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x4796b3
mov dword [esi + 0x58], 5
jmp 0x4796d8
mov eax, dword [esp + 0xd0]
push str.bottom
lea ecx, [esp + 0xc0]
call fcn.004484f0
neg eax
sbb eax, eax
and eax, 2
add eax, 3
mov dword [esi + 0x58], eax
mov byte [esp + 0xe8], 0
cmp dword [esp + 0xd4], ebx
jb 0x479a25
mov ecx, dword [esp + 0xc0]
push ecx
jmp 0x479a1d
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xe8], 0xc
mov eax, dword [ecx + 0x14]
push 0x4e6148
mov edi, 9
call fcn.004484f0
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], ebx
jb 0x47974e
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x4798b1
push 0x8c
call fcn.00488fa5
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xe8], 0xd
je 0x479780
push eax
call fcn.004664f0
mov esi, eax
jmp 0x479782
xor esi, esi
push 0
lea eax, [esp + 0x9c]
mov byte [esp + 0xec], 0
push eax
mov ecx, str.linetype
mov dword [esp + 0x20], esi
mov dword [esi + 4], 3
call fcn.0046ce60
push 1
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.linewidth
mov dword [esi + 0x3c], eax
call fcn.0046ce60
lea edx, [esp + 0x7c]
mov dword [esi + 0x40], eax
push edx
lea eax, [esp + 0x9c]
push eax
mov edx, 0x4d97fc
mov ecx, str.bordercolor
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
mov byte [esp + 0xf0], 0xe
call fcn.00406430
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], ebx
jb 0x479814
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
push 0
lea edx, [esp + 0x9c]
push edx
mov ecx, str.roundwidth
call fcn.0046ce60
mov dword [esi + 0x7c], eax
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, str.roundheight
call fcn.0046ce60
push 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.transparent
mov dword [esi + 0x80], eax
call fcn.0046d260
lea edx, [esp + 0x7c]
mov byte [esi + 0x84], al
push edx
lea eax, [esp + 0x9c]
push eax
mov edx, 0x4d97fc
mov ecx, str.bkcolor
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x60]
mov byte [esp + 0xf0], 0xf
call fcn.00406430
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], ebx
jb 0x479a25
mov ecx, dword [esp + 0x80]
push ecx
jmp 0x479a1d
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xe8], 0x10
mov eax, dword [ecx + 0x14]
push 0x4e61b4
mov edi, 4
call fcn.004484f0
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], ebx
jb 0x479905
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x479a25
push 0x70
call fcn.00488fa5
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xe8], 0x11
je 0x479934
push eax
call fcn.004663e0
mov esi, eax
jmp 0x479936
xor esi, esi
push 0
lea eax, [esp + 0x9c]
mov byte [esp + 0xec], 0
push eax
mov ecx, str.linetype
mov dword [esp + 0x20], esi
mov dword [esi + 4], 4
call fcn.0046ce60
push 1
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.linewidth
mov dword [esi + 0x3c], eax
call fcn.0046ce60
push 0
lea edx, [esp + 0x9c]
push edx
mov ecx, 0x4e61c0
mov dword [esi + 0x40], eax
call fcn.0046ce60
mov dword [esi + 0x44], eax
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, 0x4e61c8
call fcn.0046ce60
push 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, 0x4e61d0
mov dword [esi + 0x48], eax
call fcn.0046ce60
push 0
lea edx, [esp + 0x9c]
push edx
mov ecx, 0x4e61d8
mov dword [esi + 0x4c], eax
call fcn.0046ce60
mov dword [esi + 0x50], eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov edx, 0x4d97fc
mov ecx, str.color
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x54]
mov byte [esp + 0xf0], 0x12
call fcn.00406430
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], 8
jb 0x479a25
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
lea ecx, [esp + 0x24]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xe8], 0x13
mov ebx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x14]
or ebx, 1
push 0x4e4e58
mov edi, 5
mov dword [esp + 0x20], ebx
call fcn.004484f0
test eax, eax
je 0x479b19
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov dword [esp + 0xe8], 0x14
mov eax, dword [ecx + 0x14]
or ebx, 2
push 0x4e5fb0
mov edi, 4
mov dword [esp + 0x20], ebx
call fcn.004484f0
test eax, eax
je 0x479b19
lea ecx, [esp + 0x40]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov dword [esp + 0xe8], 0x15
mov eax, dword [ecx + 0x14]
or ebx, edi
push 0x4e6148
mov edi, 9
mov dword [esp + 0x20], ebx
call fcn.004484f0
test eax, eax
je 0x479b19
lea ecx, [esp + 0xbc]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov dword [esp + 0xe8], 0x16
mov eax, dword [ecx + 0x14]
or ebx, 8
push 0x4e61b4
mov edi, 4
mov dword [esp + 0x20], ebx
call fcn.004484f0
test eax, eax
mov byte [esp + 0x17], 0
jne 0x479b1e
mov byte [esp + 0x17], 1
test bl, 8
je 0x479b63
and ebx, 0xfffffff7
cmp dword [esp + 0xd4], 8
mov dword [esp + 0x1c], ebx
jb 0x479b44
mov eax, dword [esp + 0xc0]
push eax
call fcn.00488fd0
add esp, 4
xor edi, edi
mov esi, 7
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], edi
mov word [esp + 0xc0], di
jmp 0x479b68
xor edi, edi
lea esi, [edi + 7]
test bl, 4
je 0x479b95
and ebx, 0xfffffffb
cmp dword [esp + 0x58], 8
mov dword [esp + 0x1c], ebx
jb 0x479b88
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00488fd0
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
test bl, 2
je 0x479bd1
and ebx, 0xfffffffd
cmp dword [esp + 0x94], 8
mov dword [esp + 0x1c], ebx
jb 0x479bbb
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
mov word [esp + 0x80], di
test bl, 1
mov dword [esp + 0xe8], edi
je 0x479bf8
and ebx, 0xfffffffe
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x1c], ebx
jb 0x479bf8
mov eax, dword [esp + 0x28]
push eax
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x479d5d
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, 0x4d97fc
mov ecx, 0x4e58d8
call fcn.0046cc70
mov byte [esp + 0xe8], 0x17
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
add ecx, 8
push 0
call fcn.00406430
mov esi, 8
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x3c], esi
jb 0x479c57
mov eax, dword [esp + 0x28]
push eax
call fcn.00488fd0
add esp, 4
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, 0x4d97fc
mov ecx, str.state
call fcn.0046cc70
mov byte [esp + 0xe8], 0x18
cmp dword [esp + 0x94], esi
mov edx, dword [esp + 0x80]
jae 0x479c92
lea edx, [esp + 0x80]
call fcn.00464f70
mov esi, dword [esp + 0x18]
mov dword [esi + 0x24], eax
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, 0x4dd30c
call fcn.0046ce60
push 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, 0x4dd324
mov dword [esi + 0x28], eax
call fcn.0046ce60
push 0
lea edx, [esp + 0x9c]
push edx
mov ecx, str.width
mov dword [esi + 0x2c], eax
call fcn.0046ce60
mov dword [esi + 0x30], eax
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, str.height
call fcn.0046ce60
push 1
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.visible
mov dword [esi + 0x34], eax
call fcn.0046d260
mov ebx, dword [esp + 0x20]
mov byte [esi + 0x38], al
mov esi, dword [ebx + 8]
mov eax, dword [esi + 4]
add ebx, 4
lea edx, [esp + 0x18]
push edx
push eax
push esi
call fcn.004142d0
mov ecx, ebx
mov edi, eax
call fcn.004392e0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x94], 8
jb 0x479d5d
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x479d84
mov esi, dword [eax + 0x40]
test esi, esi
je 0x479d84
nop
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x479dc4
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x479d70
cmp dword [esp + 0xb4], 8
jb 0x479d9e
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.00488fd0
add esp, 4
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004a74b2
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
je 0x479d84
mov dword [esp + 0xb8], eax
jmp 0x479150