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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dbb48
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5246f0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x5246f0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
call fcn.00402af0
xor ebx, ebx
mov dword [esp + 0x78], ebx
mov eax, dword [esi + 8]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x41d58e
lea ecx, [esp + 0x4c]
call fcn.00405540
xor eax, eax
jmp 0x41dd82
mov edi, dword [eax + 0x18]
cmp edi, ebx
je 0x41d5a9
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x41d5d8
mov edi, dword [edi + 0x40]
cmp edi, ebx
jne 0x41d595
xor eax, eax
mov edi, dword [eax + 0x18]
cmp edi, ebx
je 0x41d5c6
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x41d5e3
mov edi, dword [edi + 0x40]
cmp edi, ebx
jne 0x41d5b2
xor eax, eax
mov esi, eax
mov dword [esp + 0x18], esi
cmp eax, ebx
je 0x41dd75
jmp 0x41d5f4
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
jmp 0x41d5ab
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
jmp 0x41d5c8
mov esi, dword [esp + 0x18]
lea eax, [esi + 0x44]
push eax
mov ebx, str.name
call fcn.00444c80
test eax, eax
je 0x41d65a
lea ecx, [eax + 0x30]
call fcn.00404d10
test eax, eax
je 0x41d65a
cmp byte [eax], 0
je 0x41d65a
mov edx, eax
lea ecx, [esp + 0x30]
call fcn.0043e470
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x7c], 1
call fcn.00402bb0
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 0
call fcn.00405540
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x50]
call fcn.00404cf0
push eax
call fcn.0046017c
add esp, 8
test eax, eax
je 0x41d693
mov edi, dword [esi + 0x40]
test edi, edi
je 0x41d675
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x41d688
mov edi, dword [edi + 0x40]
test edi, edi
jne 0x41d661
xor eax, eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41d5f0
jmp 0x41dd75
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
jmp 0x41d677
lea ecx, [esi + 0x20]
call fcn.00404d10
push str.color
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41d737
push 0xc
call fcn.0045f789
add esp, 4
test eax, eax
je 0x41d6d7
mov dword [eax], vtable.ui::ColorDrawable.0
mov dword [eax + 4], vtable.ui::Color.0
mov dword [eax + 8], 0xff
mov ebx, eax
jmp 0x41d6d9
xor ebx, ebx
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x41dd75
lea eax, [esi + 0x44]
mov esi, dword [eax + 0x50]
cmp esi, eax
je 0x41dd75
test esi, esi
je 0x41dd75
jmp 0x41d700
lea ecx, [esi + 0x30]
call fcn.00404d10
lea ecx, [esi + 0x14]
mov edi, eax
call fcn.00404d10
mov edx, dword [ebx]
push edi
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov esi, dword [esi + 0x50]
cmp dword [esi + 0x40], 0
jne 0x41d72e
cmp dword [esi + 0x24], 0
jne 0x41d72e
xor esi, esi
test esi, esi
jne 0x41d700
jmp 0x41dd75
lea ecx, [esi + 0x20]
call fcn.00404d10
push str.border
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41d7e7
push 0x14
call fcn.0045f789
add esp, 4
test eax, eax
je 0x41d789
mov dword [eax], vtable.ui::BorderDrawable.0
mov dword [eax + 4], vtable.ui::Color.0
mov dword [eax + 8], 0xff
mov dword [eax + 0xc], 0x10001
mov dword [eax + 0x10], 0x10001
mov ebx, eax
jmp 0x41d78b
xor ebx, ebx
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x41dd75
lea eax, [esi + 0x44]
mov esi, dword [eax + 0x50]
cmp esi, eax
je 0x41dd75
test esi, esi
je 0x41dd75
lea ecx, [ecx]
lea ecx, [esi + 0x30]
call fcn.00404d10
lea ecx, [esi + 0x14]
mov edi, eax
call fcn.00404d10
mov edx, dword [ebx]
push edi
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov esi, dword [esi + 0x50]
cmp dword [esi + 0x40], 0
jne 0x41d7de
cmp dword [esi + 0x24], 0
jne 0x41d7de
xor esi, esi
test esi, esi
jne 0x41d7b0
jmp 0x41dd75
lea ecx, [esi + 0x20]
call fcn.00404d10
push str.gradient
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41d898
push 0x18
call fcn.0045f789
add esp, 4
test eax, eax
je 0x41d83d
mov dword [eax], vtable.ui::GradientDrawable.0
mov edx, vtable.ui::Color.0
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0xff
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0xff
mov dword [eax + 4], 0
mov edi, eax
jmp 0x41d83f
xor edi, edi
mov dword [esp + 0x14], edi
test edi, edi
je 0x41dd75
lea eax, [esi + 0x44]
mov esi, dword [eax + 0x50]
cmp esi, eax
je 0x41dd75
test esi, esi
je 0x41dd75
lea ecx, [esi + 0x30]
call fcn.00404d10
lea ecx, [esi + 0x14]
mov ebx, eax
call fcn.00404d10
mov edx, dword [edi]
push ebx
push eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov esi, dword [esi + 0x50]
cmp dword [esi + 0x40], 0
jne 0x41d88f
cmp dword [esi + 0x24], 0
jne 0x41d88f
xor esi, esi
test esi, esi
jne 0x41d861
jmp 0x41dd75
lea ecx, [esi + 0x20]
call fcn.00404d10
push str.selector
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41da93
push 0x20
call fcn.0045f789
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x41d8f2
mov dword [eax + 4], vtable.ui::IStateful.0
mov dword [eax], vtable.ui::StateDrawable.0
mov dword [eax + 4], vtable.ui::StateDrawable.1.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [esp + 0x28], eax
jmp 0x41d8f6
mov dword [esp + 0x28], ecx
mov ebx, dword [esi + 0x94]
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0x44]
mov dword [esp + 0x14], ecx
cmp ebx, eax
je 0x41dd75
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x41dd75
jmp 0x41d920
lea ecx, [ebx + 0x14]
call fcn.00404d10
push str.normal
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41d943
mov dword [esp + 0x18], eax
jmp 0x41d9d5
lea ecx, [ebx + 0x14]
call fcn.00404d10
push str.hover
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41d967
mov dword [esp + 0x18], 1
jmp 0x41d9d5
lea ecx, [ebx + 0x14]
call fcn.00404d10
push str.pressed
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41d98b
mov dword [esp + 0x18], 2
jmp 0x41d9d5
lea ecx, [ebx + 0x14]
call fcn.00404d10
push str.disable
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41d9af
mov dword [esp + 0x18], 3
jmp 0x41d9d5
lea ecx, [ebx + 0x14]
call fcn.00404d10
push str.selected
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41da6f
mov dword [esp + 0x18], 4
mov ecx, dword [esp + 0x24]
add ecx, 0x30
call fcn.00404d10
mov edx, eax
lea ecx, [esp + 0x30]
call fcn.0043e470
mov edi, dword [esp + 0x1c]
add edi, 0x2c
lea esi, [esp + 0x30]
lea ebx, [esp + 0x2c]
mov eax, edi
mov byte [esp + 0x78], 2
call fcn.0041ed40
mov edx, dword [edi + 4]
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edx
call fcn.004045c0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x20]
je 0x41da27
mov esi, dword [eax + 0x28]
jmp 0x41da49
lea ecx, [esp + 0x30]
call fcn.00404cf0
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0041d520
lea edx, [esp + 0x30]
mov ecx, edi
mov esi, eax
call fcn.0041ec00
mov dword [eax], esi
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
add ecx, 4
push esi
push edx
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 0
call fcn.00405540
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x50]
cmp dword [eax + 0x40], 0
jne 0x41da80
cmp dword [eax + 0x24], 0
jne 0x41da80
xor eax, eax
mov ebx, eax
mov dword [esp + 0x24], eax
test eax, eax
jne 0x41d920
jmp 0x41dd75
lea ecx, [esi + 0x20]
call fcn.00404d10
push str.multipiece
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41dbe7
mov ebx, 0x510f00
mov eax, esi
call fcn.00443c70
mov edx, eax
lea ecx, [esp + 0x30]
call fcn.0043e470
push 0x511a54
lea ecx, [esp + 0x34]
mov byte [esp + 0x7c], 3
call fcn.00408cd0
test eax, eax
je 0x41dbc2
push 0
lea ecx, [esp + 0x34]
call fcn.00404cf0
mov esi, dword [esp + 0x20]
xor edi, edi
mov ecx, eax
call fcn.0041e7f0
mov esi, eax
test esi, esi
je 0x41dd6c
push esi
call fcn.0045ea51
add esp, 4
push esi
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00404cf0
mov esi, dword [esp + 0x20]
mov ecx, eax
call fcn.0041e7f0
push 0x1c
mov ebx, eax
call fcn.0045f789
add esp, 4
test eax, eax
je 0x41db5f
call fcn.00426a70
mov esi, eax
test esi, esi
je 0x41db5f
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push ebx
push edi
mov ecx, esi
call eax
test al, al
je 0x41db55
mov dword [esp + 0x14], esi
jmp 0x41db5f
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test edi, edi
je 0x41db6c
push edi
call fcn.0045f531
add esp, 4
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x14], 0
je 0x41dd6c
lea eax, [esi + 0x44]
mov esi, dword [eax + 0x50]
cmp esi, eax
je 0x41dd6c
test esi, esi
je 0x41dd6c
lea ecx, [esi + 0x30]
call fcn.00404d10
lea ecx, [esi + 0x14]
mov edi, eax
call fcn.00404d10
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0x14]
call eax
mov eax, esi
call fcn.00411c30
mov esi, eax
test esi, esi
jne 0x41db91
jmp 0x41dd6c
push 0x1c
call fcn.0045f789
add esp, 4
test eax, eax
je 0x41dd6c
call fcn.00426a70
test eax, eax
je 0x41dd6c
mov dword [esp + 0x14], eax
jmp 0x41db70
lea ecx, [esi + 0x20]
call fcn.00404d10
push str.image
push eax
call fcn.00460c52
add esp, 8
test eax, eax
jne 0x41dd75
mov ebx, 0x510f00
mov eax, esi
call fcn.00443c70
mov edx, eax
lea ecx, [esp + 0x30]
call fcn.0043e470
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x7c], 4
call fcn.00404cf0
mov esi, dword [esp + 0x20]
xor edi, edi
mov ecx, eax
call fcn.0041e7f0
mov esi, eax
test esi, esi
je 0x41dd6c
push esi
call fcn.0045ea51
add esp, 4
push esi
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00404cf0
mov esi, dword [esp + 0x20]
mov ecx, eax
call fcn.0041e7f0
push 0x511a58
mov ebx, eax
call fcn.00405d10
add esp, 4
push eax
push 0xffffffffffffffff
push 0x511a58
lea ecx, [esp + 0x3c]
call fcn.004071f0
cmp eax, 0xffffffff
je 0x41dcd2
push 0x20
call fcn.0045f789
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x41dd18
mov dword [esi + 4], eax
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi], vtable.ui::GifImage.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push ebx
push edi
mov ecx, esi
call eax
test al, al
je 0x41dd0e
mov ebx, esi
mov dword [esp + 0x14], ebx
jmp 0x41dd1c
push 0x10
call fcn.0045f789
mov esi, eax
add esp, 4
test esi, esi
je 0x41dd18
xor ecx, ecx
xor eax, eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov dword [esi], vtable.ui::Image.0
mov dword [esi + 4], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push ebx
push edi
mov ecx, esi
call eax
test al, al
je 0x41dd0e
mov dword [esp + 0x14], esi
jmp 0x41dd18
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x41dd29
push edi
call fcn.0045f531
add esp, 4
test ebx, ebx
je 0x41dd6c
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x94]
add eax, 0x44
cmp edi, eax
je 0x41dd6c
test edi, edi
je 0x41dd6c
lea ecx, [edi + 0x30]
call fcn.00404d10
lea ecx, [edi + 0x14]
mov esi, eax
call fcn.00404d10
mov edx, dword [ebx]
push esi
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov eax, edi
call fcn.00411c30
mov edi, eax
test edi, edi
jne 0x41dd42
lea ecx, [esp + 0x30]
call fcn.00405540
lea ecx, [esp + 0x4c]
call fcn.00405540
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0045f522
mov esp, ebp
pop ebp
ret 4